Package | Description |
---|---|
edu.umass.cs.surveyman |
Top level surveyman language package.
|
edu.umass.cs.surveyman.analyses |
Contains static and dynamic analysis structures and logic.
|
edu.umass.cs.surveyman.analyses.rules |
Contains available rules for the wellformedness check in static analysis.
|
edu.umass.cs.surveyman.input |
Contains the abstract lexing and parsing protocols and some concrete implementations.
|
edu.umass.cs.surveyman.input.csv |
Contains concrete implementations of AbstractLexer and AbstractParser for csv input.
|
edu.umass.cs.surveyman.input.json |
Contains a concrete implementation AbstractParser for JSON input.
|
edu.umass.cs.surveyman.output |
Contains objects used to print out results or transmit data over a server.
|
edu.umass.cs.surveyman.qc |
Contains quality control metrics.
|
edu.umass.cs.surveyman.qc.biases | |
edu.umass.cs.surveyman.qc.respondents | |
edu.umass.cs.surveyman.samples |
Contains sample programs for how to use SurveyMan programmatically.
|
edu.umass.cs.surveyman.server | |
edu.umass.cs.surveyman.survey |
Contains internal representations of survey component abstractions.
|
Modifier and Type | Method and Description |
---|---|
static void |
SurveyMan.analyze(Survey survey,
Analyses analyses,
Classifier classifier,
int n,
double granularity,
double alpha,
String outputFile,
String resultsfile,
boolean smoothing)
Analyzes the survey.
|
Modifier and Type | Method and Description |
---|---|
Survey |
SurveyResponse.getSurvey() |
Modifier and Type | Method and Description |
---|---|
static Simulation.ROC |
Simulation.analyze(Survey survey,
List<? extends SurveyResponse> surveyResponses,
Classifier classifier,
double alpha)
Classifies bad actors and returns classification results for the mix of respondents provided.
|
abstract void |
AbstractRule.check(Survey survey) |
static DynamicAnalysis.Report |
DynamicAnalysis.dynamicAnalysis(Survey survey,
List<DynamicAnalysis.DynamicSurveyResponse> responses,
Classifier classifier,
boolean smoothing,
double alpha) |
List<? extends SurveyResponse> |
ISurveyResponseReader.readSurveyResponses(Survey s,
Reader r) |
static List<DynamicAnalysis.DynamicSurveyResponse> |
DynamicAnalysis.readSurveyResponses(Survey s,
Reader r)
Parses the responses to survey s contained in r.
|
List<? extends SurveyResponse> |
DynamicAnalysis.DynamicSurveyResponse.readSurveyResponses(Survey s,
Reader r) |
static List<DynamicAnalysis.DynamicSurveyResponse> |
DynamicAnalysis.readSurveyResponses(Survey s,
String filename)
Parses the responses to survey s contained in the file named filename.
|
static List<SurveyResponse> |
Simulation.simulate(Survey survey,
int totalResponses,
double percentAdversaries,
RandomRespondent.AdversaryType adversaryType,
AbstractRespondent profile)
Simulates responses to a survey.
|
static StaticAnalysis.Report |
StaticAnalysis.staticAnalysis(Survey survey,
Classifier classifier,
int n,
double granularity,
double alpha,
RandomRespondent.AdversaryType adversaryType) |
static void |
StaticAnalysis.wellFormednessChecks(Survey survey) |
Constructor and Description |
---|
DynamicAnalysis.DynamicSurveyResponse(Survey survey,
String srid) |
DynamicAnalysis.QuestionResponse(Survey s,
String quid,
int qpos)
QuestionResponse constructor.
|
SurveyResponse(Survey survey) |
SurveyResponse(Survey survey,
List<IQuestionResponse> responses,
String srid,
double score,
double threshold,
KnownValidityStatus knownValidityStatus) |
Modifier and Type | Method and Description |
---|---|
void |
NonEmptySurvey.check(Survey survey) |
void |
SampleHomogenousMaps.check(Survey survey) |
void |
Reachability.check(Survey survey) |
void |
NoTopLevelBranching.check(Survey survey) |
void |
ExclusiveBranching.check(Survey survey) |
void |
Compactness.check(Survey survey) |
void |
BranchTop.check(Survey survey) |
void |
BranchParadigm.check(Survey survey) |
void |
BranchForward.check(Survey survey) |
void |
BranchConsistency.check(Survey survey) |
Modifier and Type | Method and Description |
---|---|
abstract Survey |
AbstractParser.parse()
The main entry point.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractParser.initializeAllOneBlock(Survey survey)
Initializes a block-less survey as a survey of one block.
|
protected void |
AbstractParser.propagateBranchParadigms(Survey survey)
Iterates over the top-level blocks of the survey and calls
AbstractParser.propagateBranchParadigm(edu.umass.cs.surveyman.survey.Block) . |
Modifier and Type | Method and Description |
---|---|
Survey |
CSVParser.parse()
Parses the csv lexed by the input to the CSVParser's constructor.
|
Modifier and Type | Method and Description |
---|---|
Survey |
JSONParser.parse()
Validates and parses the survey.
|
Constructor and Description |
---|
BreakoffByPosition(Survey survey) |
BreakoffByQuestion(Survey survey) |
OrderBiasStruct(Survey survey,
double alpha) |
WordingBiasStruct(Survey survey,
double alpha) |
Modifier and Type | Field and Description |
---|---|
Survey |
SurveyDAG.survey |
Survey |
Interpreter.survey |
Modifier and Type | Method and Description |
---|---|
static SurveyDAG |
SurveyDAG.getDag(Survey survey)
Returns the DAG for the provided survey.
|
static List<SurveyPath> |
SurveyDAG.getPaths(Survey s)
Returns paths through **blocks** in the survey.
|
static Map<Boolean,List<Block>> |
Interpreter.partitionBlocks(Survey survey)
Partitions the top-level blocks in the survey into those that are floating and those that are static.
|
static double |
QCMetrics.surveyEntropy(Survey survey,
List<? extends SurveyResponse> responses)
Calculates the empirical entropy for this survey, given a set of responses.
|
Constructor and Description |
---|
Interpreter(Survey survey)
Constructs an interpreter for a given survey.
|
QCMetrics(Survey survey) |
QCMetrics(Survey survey,
boolean smoothing) |
Modifier and Type | Method and Description |
---|---|
static OrderBiasStruct |
OrderBias.calculateOrderBiases(Survey survey,
List<? extends SurveyResponse> responses,
double alpha)
Searches for significant order biases observed in survey responses.
|
Modifier and Type | Field and Description |
---|---|
Survey |
RandomRespondent.survey |
protected Survey |
LexicographicRespondent.survey |
Constructor and Description |
---|
LexicographicRespondent(Survey survey) |
NoisyLexicographicRespondent(Survey survey,
double epsilon) |
NonRandomRespondent(Survey survey) |
RandomRespondent(Survey survey,
RandomRespondent.AdversaryType adversaryType) |
Modifier and Type | Method and Description |
---|---|
static Survey |
EntropyStressTest.createSurvey(int numquestions,
int optionsarity) |
static Survey |
JudgementTask.makeSurvey() |
Modifier and Type | Method and Description |
---|---|
static void |
EntropyStressTest.addOption(Survey survey) |
static void |
EntropyStressTest.addQuestion(Survey survey) |
static void |
QCMetricsComparison.dumpData(Survey survey,
List<? extends SurveyResponse> surveyResponses,
String clz,
boolean honestRespondent,
OutputStreamWriter osw) |
static void |
QCMetricsComparison.experiment0(Survey survey,
String filename,
List<? extends SurveyResponse>... surveyRespondentsLists) |
static void |
QCMetricsComparison.experiment1(Survey survey,
List<? extends SurveyResponse> honestRespondents,
List<? extends SurveyResponse> badActors) |
static void |
QCMetricsComparison.experiment3(Survey survey,
String filename,
int clusters,
List<? extends SurveyResponse>... responseLists) |
static void |
QCMetricsComparison.experiment4(Survey survey,
String filename,
List<? extends SurveyResponse>... responseLists) |
static void |
QCMetricsComparison.experiment5(Survey survey,
String filename,
List<? extends SurveyResponse>... responseLists) |
static float[][] |
QCMetricsComparison.generateFeaturesForExperiment1(Survey survey,
List<? extends SurveyResponse> responses) |
Modifier and Type | Method and Description |
---|---|
static Survey |
StaticAnalysisServer.parseCSV(javax.servlet.http.HttpServletRequest request) |
static Survey |
StaticAnalysisServer.parseJSON(javax.servlet.http.HttpServletRequest request) |
Modifier and Type | Method and Description |
---|---|
protected void |
Question.updateFromSurvey(Survey s) |
Copyright © 2015. All rights reserved.