Package org.aksw.palmetto.evaluate
Class CoherenceValueArray
- java.lang.Object
-
- org.aksw.palmetto.evaluate.CoherenceValue
-
- org.aksw.palmetto.evaluate.CoherenceValueArray
-
- All Implemented Interfaces:
Cloneable
public class CoherenceValueArray extends CoherenceValue
This simple structure represents an array of coherence values.- Author:
- Michael Röder (michael.roeder@uni-paderborn.de)
-
-
Field Summary
Fields Modifier and Type Field Description protected doublestdDevprotected double[]values-
Fields inherited from class org.aksw.palmetto.evaluate.CoherenceValue
containsNaN, correlation, line
-
-
Constructor Summary
Constructors Constructor Description CoherenceValueArray()CoherenceValueArray(double correlation, double[] values, boolean containsNaN, String[] line)CoherenceValueArray(double correlation, double stdDev, double[] values, boolean containsNaN, String[] line)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Objectclone()static CoherenceValueArraycreate(String[] line, int startCorrValues, int endCorrValues, int avgCorrValues)doublegetStdDev()double[]getValues()voidsetStdDev(double stdDev)voidsetValues(double[] values)voidsummarize()Calculates the arithmetic mean and the standard deviation of the values array.voidupdate(String[] line, int startCorrValues, int endCorrValues, int avgCorrValues)protected voidupdate(CoherenceValue newValues)-
Methods inherited from class org.aksw.palmetto.evaluate.CoherenceValue
getCorrelation, getLine, isContainsNaN, setContainsNaN, setCorrelation, setLine, update, updateIfBetter, updateIfBetter
-
-
-
-
Constructor Detail
-
CoherenceValueArray
public CoherenceValueArray()
-
CoherenceValueArray
public CoherenceValueArray(double correlation, double[] values, boolean containsNaN, String[] line)
-
CoherenceValueArray
public CoherenceValueArray(double correlation, double stdDev, double[] values, boolean containsNaN, String[] line)
-
-
Method Detail
-
update
public void update(String[] line, int startCorrValues, int endCorrValues, int avgCorrValues)
- Overrides:
updatein classCoherenceValue
-
update
protected void update(CoherenceValue newValues)
- Overrides:
updatein classCoherenceValue
-
getValues
public double[] getValues()
- Returns:
- the values
-
setValues
public void setValues(double[] values)
- Parameters:
values- the values to set
-
getStdDev
public double getStdDev()
- Returns:
- the stdDev
-
setStdDev
public void setStdDev(double stdDev)
- Parameters:
stdDev- the stdDev to set
-
summarize
public void summarize()
Calculates the arithmetic mean and the standard deviation of the values array.
-
clone
protected Object clone() throws CloneNotSupportedException
- Overrides:
clonein classCoherenceValue- Throws:
CloneNotSupportedException
-
create
public static CoherenceValueArray create(String[] line, int startCorrValues, int endCorrValues, int avgCorrValues)
-
-