|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.computing.ai.casebasedreasoning.TraitStatistics
public class TraitStatistics
The TraitStatistics class contains statistical info
about the various values for a single, specific trait. That includes the max value, min value and range This class has two primary purposes. First, we need this info to handle queries that use the variables [MAX_VALUE] and [MIN_VALUE] Second, we need the min, max and range info to do the nearest neighbor/similarity calculation Although this should be obvious, this class was only designed to work with numbers - i don't want to compute degrees of similarity on strings or booleans When building stats for strings and booleans, min=0 max=1 It is believed that DataSetStatistics is the only class that will instantiate this one. The class was designed to be contained by DataSetStatistics
| Constructor Summary | |
|---|---|
TraitStatistics(java.lang.String traitName)
|
|
| Method Summary | |
|---|---|
void |
addExample(float value)
|
float |
getMaximumValue()
DOCUMENT ME! |
float |
getMinimumValue()
DOCUMENT ME! |
float |
getRange()
DOCUMENT ME! |
java.lang.String |
getTraitName()
DOCUMENT ME! |
protected void |
setMaximumValue(float value)
|
protected void |
setMinimumValue(float value)
|
protected void |
setTraitName(java.lang.String name)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TraitStatistics(java.lang.String traitName)
| Method Detail |
|---|
public void addExample(float value)
public float getMaximumValue()
public float getMinimumValue()
public java.lang.String getTraitName()
public float getRange()
protected void setMaximumValue(float value)
protected void setMinimumValue(float value)
protected void setTraitName(java.lang.String name)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||