Package qmwi.kseg.som
Class CSV_SOM_dataEntry
java.lang.Object
qmwi.kseg.som.CSV_SOM_dataEntry
- All Implemented Interfaces:
SOMdataEntry
public class CSV_SOM_dataEntry extends Object implements SOMdataEntry
-
Constructor Summary
Constructors Constructor Description CSV_SOM_dataEntry(int size)CSV_SOM_dataEntry(int columnCount, Object userData) -
Method Summary
Modifier and Type Method Description SOMdataEntryaddValues(String inputLine)SOMdataEntryaddValues(String inputLine, boolean normalized)String[]getColumnData()StringgetColumnData(int i)ArrayList<Double>getDifferencesToCentroids()doublegetMinDiff()ObjectgetUserData()booleanisAlreadyNormalized()voidsetDifferences(ArrayList<Double> differences)voidsetUserData(Object data)StringtoString()
-
Constructor Details
-
CSV_SOM_dataEntry
public CSV_SOM_dataEntry(int size) -
CSV_SOM_dataEntry
- Parameters:
columnCount-n-
-
-
Method Details
-
toString
-
getColumnData
- Specified by:
getColumnDatain interfaceSOMdataEntry
-
getUserData
- Specified by:
getUserDatain interfaceSOMdataEntry
-
setUserData
- Specified by:
setUserDatain interfaceSOMdataEntry
-
addValues
- Specified by:
addValuesin interfaceSOMdataEntry
-
addValues
- Specified by:
addValuesin interfaceSOMdataEntry
-
getColumnData
- Specified by:
getColumnDatain interfaceSOMdataEntry
-
isAlreadyNormalized
public boolean isAlreadyNormalized()- Specified by:
isAlreadyNormalizedin interfaceSOMdataEntry- Returns:
- True, if the supplied data is already normalized in the range of -1..1. If this value is False, The SOM train and recall method will normalize the data column wise! This means, e.g. all values for time point 1 will be collected and then normalized, thus from day to day a different normalization is performed. This is useful while analyzing independent data points. For time series data this is clearly not a good idea, in this case the data should be supplied normalized and this flag should return true.
-
getDifferencesToCentroids
- Specified by:
getDifferencesToCentroidsin interfaceSOMdataEntry
-
setDifferences
- Specified by:
setDifferencesin interfaceSOMdataEntry
-
getMinDiff
public double getMinDiff()- Specified by:
getMinDiffin interfaceSOMdataEntry
-