org.encog.ml.data.versatile.columns
Class ColumnDefinition
- java.lang.Object
-
- org.encog.ml.data.versatile.columns.ColumnDefinition
-
- All Implemented Interfaces:
- java.io.Serializable
public class ColumnDefinition extends java.lang.Object implements java.io.SerializableDefines a column definition.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description ColumnDefinition(java.lang.String theName, ColumnType theDataType)The column definition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidanalyze(java.lang.String value)Analyze the specified value.voiddefineClass(java.lang.String str)Define a class for a catagorical value.voiddefineClass(java.lang.String[] str)Define an array of classes for a catagorical value.booleanequals(java.lang.Object obj)java.util.List<java.lang.String>getClasses()intgetCount()ColumnTypegetDataType()doublegetHigh()intgetIndex()doublegetLow()doublegetMean()java.lang.StringgetName()doublegetSd()voidsetCount(int count)voidsetDataType(ColumnType dataType)voidsetHigh(double high)voidsetIndex(int index)voidsetLow(double low)voidsetMean(double mean)voidsetName(java.lang.String name)voidsetOwner(NormalizationHelper theOwner)Set the owner of this class.voidsetSd(double sd)java.lang.StringtoString()
-
-
-
Constructor Detail
-
ColumnDefinition
public ColumnDefinition(java.lang.String theName, ColumnType theDataType)The column definition.- Parameters:
theName- The name of the column.theDataType- The type of the column.
-
-
Method Detail
-
getName
public java.lang.String getName()
- Returns:
- the name
-
setName
public void setName(java.lang.String name)
- Parameters:
name- the name to set
-
getDataType
public ColumnType getDataType()
- Returns:
- the dataType
-
setDataType
public void setDataType(ColumnType dataType)
- Parameters:
dataType- the dataType to set
-
getLow
public double getLow()
- Returns:
- the low
-
setLow
public void setLow(double low)
- Parameters:
low- the low to set
-
getHigh
public double getHigh()
- Returns:
- the high
-
setHigh
public void setHigh(double high)
- Parameters:
high- the high to set
-
getMean
public double getMean()
- Returns:
- the mean
-
setMean
public void setMean(double mean)
- Parameters:
mean- the mean to set
-
getSd
public double getSd()
- Returns:
- the sd
-
setSd
public void setSd(double sd)
- Parameters:
sd- the sd to set
-
getCount
public int getCount()
- Returns:
- the count
-
setCount
public void setCount(int count)
- Parameters:
count- the count to set
-
analyze
public void analyze(java.lang.String value)
Analyze the specified value.- Parameters:
value- The value to analyze.
-
getClasses
public java.util.List<java.lang.String> getClasses()
- Returns:
- the classes
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
defineClass
public void defineClass(java.lang.String str)
Define a class for a catagorical value.- Parameters:
str- The class to add.
-
defineClass
public void defineClass(java.lang.String[] str)
Define an array of classes for a catagorical value.- Parameters:
str- The classes to add.
-
setOwner
public void setOwner(NormalizationHelper theOwner)
Set the owner of this class.- Parameters:
theOwner- The owner of this class.
-
getIndex
public int getIndex()
- Returns:
- the index
-
setIndex
public void setIndex(int index)
- Parameters:
index- the index to set
-
-
DMelt 3.0 © DataMelt by jWork.ORG