Package com.attivio.sdk.search.facet
Class FacetStatistics
- java.lang.Object
-
- com.attivio.sdk.search.facet.FacetStatistics
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class FacetStatistics extends java.lang.Object implements java.lang.Cloneable, java.io.SerializableStatistics associated with aFacetResponse.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FacetStatistics()FacetStatistics(long count)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(FacetStatistics other)Add statistics fromotherinto this FacetStatistics.FacetStatisticsclone()booleanequals(java.lang.Object other)longgetCount()Get the total number of values.java.lang.NumbergetMax()Get the maximum value.doublegetMean()Get the average value.doublegetMidPoint()Get the midpoint.java.lang.NumbergetMin()Get the minimum value.doublegetStandardDeviation()Get the standard deviation.doublegetSum()Get the sum of all values.doublegetSumOfSquares()Get the sum of the square of all values.doublegetVariance()Get the sample variance.inthashCode()voidsetCount(long value)protected voidsetCount(java.lang.Object value)voidsetMax(java.lang.Number value)voidsetMax(java.lang.Object value)voidsetMin(java.lang.Number value)voidsetMin(java.lang.Object value)voidsetSum(double value)voidsetSum(java.lang.Object value)voidsetSumOfSquares(double value)voidsetSumOfSquares(java.lang.Object value)static FacetStatisticssum(FacetStatistics a, FacetStatistics b)Compute the sum ofaandb.java.lang.StringtoString()static FacetStatisticsvalueOf(FacetBuckets buckets, long totalCount)
-
-
-
Method Detail
-
getCount
public long getCount()
Get the total number of values.
-
setCount
public void setCount(long value)
-
setCount
protected void setCount(java.lang.Object value)
-
getMin
public java.lang.Number getMin()
Get the minimum value.
-
setMin
public void setMin(java.lang.Number value)
-
setMin
public void setMin(java.lang.Object value)
-
getMax
public java.lang.Number getMax()
Get the maximum value.
-
setMax
public void setMax(java.lang.Number value)
-
setMax
public void setMax(java.lang.Object value)
-
getSum
public double getSum()
Get the sum of all values.
-
setSum
public void setSum(double value)
-
setSum
public void setSum(java.lang.Object value)
-
getSumOfSquares
public double getSumOfSquares()
Get the sum of the square of all values.
-
setSumOfSquares
public void setSumOfSquares(double value)
-
setSumOfSquares
public void setSumOfSquares(java.lang.Object value)
-
getMean
public double getMean()
Get the average value.
-
getMidPoint
public double getMidPoint()
Get the midpoint.
-
getVariance
public double getVariance()
Get the sample variance.
-
getStandardDeviation
public double getStandardDeviation()
Get the standard deviation.
-
add
public void add(FacetStatistics other)
Add statistics fromotherinto this FacetStatistics.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
clone
public FacetStatistics clone()
- Overrides:
clonein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
valueOf
public static FacetStatistics valueOf(FacetBuckets buckets, long totalCount)
-
sum
public static FacetStatistics sum(FacetStatistics a, FacetStatistics b)
Compute the sum ofaandb.
-
-