C# Class Encog.App.Analyst.Script.Normalize.AnalystField

Holds a field to be analyzed.
Mostra file Open project: encog/encog-silverlight-core Class Usage Examples

Public Methods

Method Description
AddRawHeadings ( StringBuilder line, String prefix, CSVFormat format ) : void

Add headings for a raw file.

AnalystField ( ) : System

Construct the object with a range of 1 and -1.

AnalystField ( AnalystField field ) : System

Construct an analyst field. Works like a C++ copy constructor.

AnalystField ( NormalizationAction theAction, String theName ) : System

Construct an object.

AnalystField ( NormalizationAction theAction, String theName, double ahigh, double alow, double nhigh, double nlow ) : System

Construct the field, with no defaults.

AnalystField ( String theName, NormalizationAction theAction, double high, double low ) : System

Construct an analyst field to use.

AnalystField ( double theNormalizedHigh, double theNormalizedLow ) : System

Construct the object.

Analyze ( double d ) : void

Analyze the specified value. Adjust min/max as needed. Usually used only internally.

DeNormalize ( double v ) : double

Denormalize the specified value.

DetermineClass ( double data ) : ClassItem

Determine what class the specified data belongs to.

DetermineClass ( int pos, double data ) : ClassItem

Determine the class using part of an array.

DetermineMode ( EncogAnalyst analyst ) : int

Determine the mode, this is the class item that has the most instances.

Encode ( String str ) : double[]

Encode the string to numeric form.

Encode ( int classNumber ) : double[]

Encode the class.

EncodeEquilateral ( int classNumber ) : double[]

Perform an equilateral encode.

FixSingleValue ( ) : void

Fix normalized fields that have a single value for the min/max. Separate them by 2 units.

Init ( ) : void

Init any internal structures.

Lookup ( String str ) : int

Lookup the specified field.

MakeClass ( NormalizationAction theAction, String cls, double high, double low ) : void

Make the classes using names.

MakeClass ( NormalizationAction theAction, int classFrom, int classTo, int high, int low ) : void

Make the classes based on numbers.

MakePassThrough ( ) : void

Make this a pass-through field.

Normalize ( double v ) : double

Normalize the specified value.

ToString ( ) : String

Private Methods

Method Description
EncodeOneOf ( int classNumber ) : double[]

Perform the encoding for "one of".

EncodeSingleField ( int classNumber ) : double[]

Encode a single field.

Method Details

AddRawHeadings() public method

Add headings for a raw file.
public AddRawHeadings ( StringBuilder line, String prefix, CSVFormat format ) : void
line StringBuilder The line to write the raw headings to.
prefix String The prefix to place.
format Encog.Util.CSV.CSVFormat The format to use.
return void

AnalystField() public method

Construct the object with a range of 1 and -1.
public AnalystField ( ) : System
return System

AnalystField() public method

Construct an analyst field. Works like a C++ copy constructor.
public AnalystField ( AnalystField field ) : System
field AnalystField The field to clone.
return System

AnalystField() public method

Construct an object.
public AnalystField ( NormalizationAction theAction, String theName ) : System
theAction NormalizationAction The desired action.
theName String The name of this column.
return System

AnalystField() public method

Construct the field, with no defaults.
public AnalystField ( NormalizationAction theAction, String theName, double ahigh, double alow, double nhigh, double nlow ) : System
theAction NormalizationAction The normalization action to take.
theName String The name of this field.
ahigh double The actual high.
alow double The actual low.
nhigh double The normalized high.
nlow double The normalized low.
return System

AnalystField() public method

Construct an analyst field to use.
public AnalystField ( String theName, NormalizationAction theAction, double high, double low ) : System
theName String The name of the field.
theAction NormalizationAction The action to use.
high double The high value.
low double The low value.
return System

AnalystField() public method

Construct the object.
public AnalystField ( double theNormalizedHigh, double theNormalizedLow ) : System
theNormalizedHigh double The normalized high.
theNormalizedLow double The normalized low.
return System

Analyze() public method

Analyze the specified value. Adjust min/max as needed. Usually used only internally.
public Analyze ( double d ) : void
d double The value to analyze.
return void

DeNormalize() public method

Denormalize the specified value.
public DeNormalize ( double v ) : double
v double The value to normalize.
return double

DetermineClass() public method

Determine what class the specified data belongs to.
public DetermineClass ( double data ) : ClassItem
data double The data to analyze.
return Encog.Util.Arrayutil.ClassItem

DetermineClass() public method

Determine the class using part of an array.
public DetermineClass ( int pos, double data ) : ClassItem
pos int The position to begin.
data double The array to check.
return Encog.Util.Arrayutil.ClassItem

DetermineMode() public method

Determine the mode, this is the class item that has the most instances.
public DetermineMode ( EncogAnalyst analyst ) : int
analyst EncogAnalyst The analyst to use.
return int

Encode() public method

Encode the string to numeric form.
public Encode ( String str ) : double[]
str String The string to encode.
return double[]

Encode() public method

Encode the class.
public Encode ( int classNumber ) : double[]
classNumber int The class number.
return double[]

EncodeEquilateral() public method

Perform an equilateral encode.
public EncodeEquilateral ( int classNumber ) : double[]
classNumber int The class number.
return double[]

FixSingleValue() public method

Fix normalized fields that have a single value for the min/max. Separate them by 2 units.
public FixSingleValue ( ) : void
return void

Init() public method

Init any internal structures.
public Init ( ) : void
return void

Lookup() public method

Lookup the specified field.
public Lookup ( String str ) : int
str String The name of the field to lookup.
return int

MakeClass() public method

Make the classes using names.
public MakeClass ( NormalizationAction theAction, String cls, double high, double low ) : void
theAction NormalizationAction The action to use.
cls String The class names.
high double The high value.
low double The low value.
return void

MakeClass() public method

Make the classes based on numbers.
public MakeClass ( NormalizationAction theAction, int classFrom, int classTo, int high, int low ) : void
theAction NormalizationAction The action.
classFrom int The starting class.
classTo int The ending class.
high int The high value.
low int The low value.
return void

MakePassThrough() public method

Make this a pass-through field.
public MakePassThrough ( ) : void
return void

Normalize() public method

Normalize the specified value.
public Normalize ( double v ) : double
v double The value to normalize.
return double

ToString() public final method

public final ToString ( ) : String
return String