Package com.attivio.sdk.search.fields
Class StandardScore
- java.lang.Object
-
- com.attivio.sdk.search.fields.FieldExpression
-
- com.attivio.sdk.search.fields.UnaryFieldExpression
-
- com.attivio.sdk.search.fields.StandardScore
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class StandardScore extends UnaryFieldExpression
Standard Score FieldExpression.Computes the Standard Score (or z-score) for a numeric value given the specified population mean and standard deviation.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.attivio.sdk.search.fields.FieldExpression
FieldExpression.StringMode
-
-
Field Summary
-
Fields inherited from class com.attivio.sdk.search.fields.UnaryFieldExpression
expression
-
Fields inherited from class com.attivio.sdk.search.fields.FieldExpression
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description StandardScore(FieldExpression input, double mean, double stdev)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StandardScoreclone()protected StandardScoreclone(FieldExpression e)Create a new instance of this FieldExpression, with a different argument.booleanequals(java.lang.Object other)doublegetMean()doublegetStandardDeviation()SchemaField.TypegetType(Schema schema)Resolve the type for this expression.inthashCode()voidsetMean(double value)voidsetStandardDeviation(double value)protected voidtoString(java.lang.StringBuilder buffer, FieldExpression.StringMode mode)Writes the string representation of this field expression tobuffer.static StandardScorevalueOf(StringParser reader)-
Methods inherited from class com.attivio.sdk.search.fields.UnaryFieldExpression
forEachField, getExpression, getFieldName, hasChildren, isConstant, rewrite, setExpression
-
Methods inherited from class com.attivio.sdk.search.fields.FieldExpression
apply, copyOf, forEachPhrase, forEachQuery, getDefaultName, isConstant, parse, quote, rewrite, rewriteChildren, toString, toString, valueOf
-
-
-
-
Constructor Detail
-
StandardScore
public StandardScore(FieldExpression input, double mean, double stdev)
-
-
Method Detail
-
getType
public SchemaField.Type getType(Schema schema)
Resolve the type for this expression.- Specified by:
getTypein classFieldExpression
-
getMean
public double getMean()
-
setMean
public void setMean(double value)
-
getStandardDeviation
public double getStandardDeviation()
-
setStandardDeviation
public void setStandardDeviation(double value)
-
toString
protected void toString(java.lang.StringBuilder buffer, FieldExpression.StringMode mode)Writes the string representation of this field expression tobuffer.- Specified by:
toStringin classFieldExpression
-
hashCode
public int hashCode()
- Overrides:
hashCodein classUnaryFieldExpression
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classUnaryFieldExpression
-
clone
public StandardScore clone()
- Overrides:
clonein classUnaryFieldExpression
-
clone
protected StandardScore clone(FieldExpression e)
Create a new instance of this FieldExpression, with a different argument.- Overrides:
clonein classUnaryFieldExpression
-
valueOf
public static StandardScore valueOf(StringParser reader)
-
-