|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.udo.cs.yale.operator.AbstractIOObject
edu.udo.cs.yale.operator.ResultObjectAdapter
edu.udo.cs.yale.operator.AbstractModel
edu.udo.cs.yale.operator.IOModel
edu.udo.cs.yale.operator.preprocessing.normalization.MinMaxNormalizationModel
public class MinMaxNormalizationModel
A simple model which can be used to transform all regular attributes into a value range between the given min and max values.
| Field Summary | |
|---|---|
private double |
max
The maximum value for each attribute after normalization. |
private double |
min
The minimum value for each attribute after normalization. |
| Constructor Summary | |
|---|---|
MinMaxNormalizationModel()
Create a new model. |
|
MinMaxNormalizationModel(double min,
double max)
Create a new normalization model. |
|
| Method Summary | |
|---|---|
void |
apply(ExampleSet exampleSet)
Performs the transformation. |
java.lang.String |
getName()
Returns a nicer name. |
void |
readData(java.io.ObjectInputStream in)
Reads the model data from the given stream. |
java.lang.String |
toString()
Returns a string representation of this model. |
void |
writeData(java.io.ObjectOutputStream out)
Writes the model data into the given stream. |
| Methods inherited from class edu.udo.cs.yale.operator.AbstractModel |
|---|
equals, getExtension, getFileDescription, readModel, readModel, save, setParameter, writeModel, writeModel |
| Methods inherited from class edu.udo.cs.yale.operator.ResultObjectAdapter |
|---|
addAction, getActions, getVisualisationComponent, toHTML, toResultString |
| Methods inherited from class edu.udo.cs.yale.operator.AbstractIOObject |
|---|
copy, read, read, read, write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.udo.cs.yale.operator.ResultObject |
|---|
getActions, getVisualisationComponent, toResultString |
| Methods inherited from interface edu.udo.cs.yale.operator.IOObject |
|---|
copy, write, write |
| Field Detail |
|---|
private double min
private double max
| Constructor Detail |
|---|
public MinMaxNormalizationModel()
public MinMaxNormalizationModel(double min,
double max)
| Method Detail |
|---|
public void apply(ExampleSet exampleSet)
throws OperatorException
OperatorExceptionpublic java.lang.String getName()
getName in interface ResultObjectgetName in class ResultObjectAdapterpublic java.lang.String toString()
toString in class java.lang.Object
public void writeData(java.io.ObjectOutputStream out)
throws java.io.IOException
writeData in class AbstractModeljava.io.IOException
public void readData(java.io.ObjectInputStream in)
throws java.io.IOException
readData in class IOModeljava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||