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 StandardScore
clone()
protected StandardScore
clone(FieldExpression e)
Create a new instance of this FieldExpression, with a different argument.boolean
equals(java.lang.Object other)
double
getMean()
double
getStandardDeviation()
SchemaField.Type
getType(Schema schema)
Resolve the type for this expression.int
hashCode()
void
setMean(double value)
void
setStandardDeviation(double value)
protected void
toString(java.lang.StringBuilder buffer, FieldExpression.StringMode mode)
Writes the string representation of this field expression tobuffer
.static StandardScore
valueOf(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:
getType
in 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:
toString
in classFieldExpression
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classUnaryFieldExpression
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classUnaryFieldExpression
-
clone
public StandardScore clone()
- Overrides:
clone
in classUnaryFieldExpression
-
clone
protected StandardScore clone(FieldExpression e)
Create a new instance of this FieldExpression, with a different argument.- Overrides:
clone
in classUnaryFieldExpression
-
valueOf
public static StandardScore valueOf(StringParser reader)
-
-