Package org.aksw.palmetto.evaluate
Class CoherenceValue
- java.lang.Object
-
- org.aksw.palmetto.evaluate.CoherenceValue
-
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
AbsoluteCoherenceValues,CoherenceValueArray
public class CoherenceValue extends Object implements Cloneable
Represents the metadata and the correlation results for a single coherence measure (i.e. one line in the given data).- Author:
- Michael Röder (michael.roeder@uni-paderborn.de)
-
-
Field Summary
Fields Modifier and Type Field Description protected booleancontainsNaNprotected doublecorrelationprotected String[]line
-
Constructor Summary
Constructors Modifier Constructor Description protectedCoherenceValue()CoherenceValue(double correlation, boolean containsNaN, String[] line)CoherenceValue(CoherenceValue clone)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Objectclone()static CoherenceValuecreate(String[] line, int startCorrValues, int endCorrValues, int avgCorrValues)doublegetCorrelation()String[]getLine()booleanisContainsNaN()voidsetContainsNaN(boolean containsNaN)voidsetCorrelation(double correlation)voidsetLine(String[] line)protected voidupdate(double correlation, boolean containsNaN, String[] line)voidupdate(String[] line, int startCorrValues, int endCorrValues, int avgCorrValues)protected voidupdate(CoherenceValue newValues)voidupdateIfBetter(CoherenceValue newValues)voidupdateIfBetter(CoherenceValue newValues, boolean higherIsBetter)
-
-
-
Field Detail
-
correlation
protected double correlation
-
containsNaN
protected boolean containsNaN
-
line
protected String[] line
-
-
Constructor Detail
-
CoherenceValue
protected CoherenceValue()
-
CoherenceValue
public CoherenceValue(double correlation, boolean containsNaN, String[] line)
-
CoherenceValue
public CoherenceValue(CoherenceValue clone)
-
-
Method Detail
-
clone
protected Object clone() throws CloneNotSupportedException
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
updateIfBetter
public void updateIfBetter(CoherenceValue newValues)
-
updateIfBetter
public void updateIfBetter(CoherenceValue newValues, boolean higherIsBetter)
-
update
protected void update(CoherenceValue newValues)
-
update
protected void update(double correlation, boolean containsNaN, String[] line)
-
update
public void update(String[] line, int startCorrValues, int endCorrValues, int avgCorrValues)
-
getCorrelation
public double getCorrelation()
-
setCorrelation
public void setCorrelation(double correlation)
-
isContainsNaN
public boolean isContainsNaN()
- Returns:
- the containsNaN
-
setContainsNaN
public void setContainsNaN(boolean containsNaN)
- Parameters:
containsNaN- the containsNaN to set
-
getLine
public String[] getLine()
- Returns:
- the line
-
setLine
public void setLine(String[] line)
- Parameters:
line- the line to set
-
create
public static CoherenceValue create(String[] line, int startCorrValues, int endCorrValues, int avgCorrValues)
-
-