public class NumericItemResponseSummary extends AbstractItemResponseSummary
doubleResponseMap, doubleScoreMap, stringResponseMap, stringScoreMap, totalFrequency, variableName| Constructor and Description |
|---|
NumericItemResponseSummary(VariableName name) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Iterator<java.lang.Double> |
doubleIterator() |
double |
getFrequencyAt(double response)
Frequency of a particular item response, where the response is given as a double.
|
double |
getFrequencyAt(int response)
Frequency of a particular item response, where the response is given as an int.
|
double |
getFrequencyAt(java.lang.String response)
Frequency of a particular item response, where the response is given as a String.
|
double |
getMean()
The item sample mean.
|
java.lang.String |
getOutputString()
Formatted output for the item mean and standard deviation.
|
java.lang.String |
getOutputStringAt(double response)
Formatted output for a particlar response.
|
java.lang.String |
getOutputStringAt(int response) |
java.lang.String |
getOutputStringAt(java.lang.String response) |
double |
getPopulationStandardDeviation()
The item population standard deviation (i.e.
|
double |
getPopulationStandardDeviationAt(double response)
Population standard deviation of a particular item response, where the response is given as a double.
|
double |
getPopulationStandardDeviationAt(int response)
Population standard deviation of a particular item response, where the response is given as an int.
|
double |
getPopulationStandardDeviationAt(java.lang.String response)
Population standard deviation of a particular item response, where the response is given as a String.
|
double |
getPopulationVariance()
The item population variance (i.e.
|
double |
getProportionAt(double response)
Relative frequency of a particular item response, where the response is given as a double.
|
double |
getProportionAt(int response)
Relative frequency of a particular item response, where the response is given as an int.
|
double |
getProportionAt(java.lang.String response)
Relative frequency of a particular item response, where the response is given as a String.
|
double |
getScoreAt(double response)
Returns the score that is assigned to an item response.
|
double |
getScoreAt(int response)
Returns the score that is assigned to an item response.
|
double |
getScoreAt(java.lang.String response)
Returns the score that is assigned to an item response.
|
double |
getStandardDeviation()
The item sample standard deviation (i.e.
|
double |
getStandardDeviationAt(double response)
Sample standard deviation of a particular item response, where the response is given as a double.
|
double |
getStandardDeviationAt(int response)
Sample standard deviation of a particular item response, where the response is given as an int.
|
double |
getStandardDeviationAt(java.lang.String response)
Sample standard deviation of a particular item response, where the response is given as a String.
|
java.lang.String |
getTotalFrequencyOutputString() |
double |
getVariance()
The item sample variance (i.e.
|
void |
increment(double response)
Increment frequency count of a response by one.
|
void |
increment(double response,
double freqWeight)
Increment frequency count of a response by an amount equal to freqWeight.
|
void |
increment(int response)
Increment frequency count of a response by one.
|
void |
increment(int response,
double freqWeight)
Increment frequency count of a response by an amount equal to freqWeight.
|
void |
increment(java.lang.String response)
Increment frequency count of a response by one.
|
void |
increment(java.lang.String response,
double freqWeight)
Increment frequency count of a response by an amount equal to freqWeight.
|
void |
setScoreAt(double response,
double score)
Sets the value of a response to that given by score.
|
void |
setScoreAt(int response,
double score)
Sets the value of a response to that given by score.
|
void |
setScoreAt(java.lang.String response,
double score)
Sets the value of a response to that given by score.
|
java.util.Iterator<java.lang.String> |
stringIterator() |
java.lang.String |
toString() |
getName, getTotalFrequencypublic NumericItemResponseSummary(VariableName name)
public void increment(java.lang.String response)
response - an item response that can be parsed as a double.public void increment(java.lang.String response,
double freqWeight)
throws java.lang.NumberFormatException
response - an item response that can be parsed as a doublefreqWeight - frequency weight of the responsejava.lang.NumberFormatException - throws if string cannot be parsed into a doublepublic void increment(int response)
response - an item resposnepublic void increment(int response,
double freqWeight)
response - an item response that will be converted to a doublefreqWeight - frequency weight of the responsepublic void increment(double response)
response - an item responsepublic void increment(double response,
double freqWeight)
response - an item responsefreqWeight - the frequency weight for the responsepublic void setScoreAt(java.lang.String response,
double score)
throws java.lang.NumberFormatException
response - an item responsescore - a numeric value for the scorejava.lang.NumberFormatException - thrown if the item response cannot be parsed as a double.public void setScoreAt(int response,
double score)
response - an item responsescore - a numeric value for the responsepublic void setScoreAt(double response,
double score)
response - an item responsescore - a numeric value for the responsepublic double getScoreAt(java.lang.String response)
throws java.lang.NumberFormatException
response - an item responsejava.lang.NumberFormatException - thrown if the item response cannot be parsed as a doublepublic double getScoreAt(int response)
response - an item responsepublic double getScoreAt(double response)
response - an item responsepublic double getMean()
public double getVariance()
public double getStandardDeviation()
public double getPopulationVariance()
public double getPopulationStandardDeviation()
public double getFrequencyAt(java.lang.String response)
throws java.lang.NumberFormatException
response - an item responsejava.lang.NumberFormatException - thrown if response cannot be parsed as a double.public double getFrequencyAt(int response)
response - and item responsepublic double getFrequencyAt(double response)
response - an item responsepublic double getProportionAt(java.lang.String response)
throws java.lang.NumberFormatException
response - an item responsejava.lang.NumberFormatException - thrown if response cannot be parsed as a doublepublic double getProportionAt(int response)
response - and item responsepublic double getProportionAt(double response)
response - an item responsepublic double getStandardDeviationAt(java.lang.String response)
throws java.lang.NumberFormatException
response - an item responsejava.lang.NumberFormatException - thrown if the response cannot be parsed as a doublepublic double getStandardDeviationAt(int response)
response - an item responsepublic double getStandardDeviationAt(double response)
response - an item responsepublic double getPopulationStandardDeviationAt(java.lang.String response)
response - an item responsejava.lang.NumberFormatException - thrown if the response cannot be parsed as a doublepublic double getPopulationStandardDeviationAt(int response)
response - an item responsepublic double getPopulationStandardDeviationAt(double response)
response - an item responsepublic java.util.Iterator<java.lang.Double> doubleIterator()
public java.util.Iterator<java.lang.String> stringIterator()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getOutputString()
public java.lang.String getOutputStringAt(java.lang.String response)
public java.lang.String getOutputStringAt(int response)
public java.lang.String getOutputStringAt(double response)
response - an item responsepublic java.lang.String getTotalFrequencyOutputString()