public class SurveyResponse extends Object implements org.apache.commons.math3.ml.clustering.Clusterable
Modifier and Type | Field and Description |
---|---|
org.apache.commons.math3.ml.clustering.Clusterable |
center |
String |
clusterLabel |
static Gensym |
gensym |
boolean |
noise |
Constructor and Description |
---|
SurveyResponse(Survey survey) |
SurveyResponse(Survey survey,
List<IQuestionResponse> responses,
String srid,
double score,
double threshold,
KnownValidityStatus knownValidityStatus) |
public static final Gensym gensym
public boolean noise
public String clusterLabel
public org.apache.commons.math3.ml.clustering.Clusterable center
public SurveyResponse(Survey survey)
public SurveyResponse(Survey survey, List<IQuestionResponse> responses, String srid, double score, double threshold, KnownValidityStatus knownValidityStatus)
public Survey getSurvey()
public List<IQuestionResponse> getAllResponses()
public void setResponses(List<IQuestionResponse> responses)
public void addResponse(IQuestionResponse questionResponse)
public boolean isRecorded()
public void setRecorded(boolean recorded)
public String getSrid()
public void setSrid(String srid)
public void setScore(double score)
public double getScore()
public void setThreshold(double pval)
public double getThreshold()
public KnownValidityStatus getKnownValidityStatus()
public void setKnownValidityStatus(KnownValidityStatus validityStatus)
public KnownValidityStatus getComputedValidityStatus()
public void setComputedValidityStatus(KnownValidityStatus status)
public IQuestionResponse getLastQuestionAnswered()
public List<IQuestionResponse> getNonCustomResponses()
public boolean hasResponseForQuestion(Question q)
q
- The question of interest.public IQuestionResponse getResponseForQuestion(Question q)
q
- The question whose response is needed.RuntimeException
- if the question is not in the SurveyResponse.public Map<String,IQuestionResponse> resultsAsMap()
public boolean surveyResponseContainsAnswer(List<SurveyDatum> variants)
public SurveyResponse copy()
public double[] getPoint()
getPoint
in interface org.apache.commons.math3.ml.clustering.Clusterable
Copyright © 2015. All rights reserved.