C# Класс Encog.App.Analyst.Script.Normalize.AnalystField

Holds a field to be analyzed.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
EncodeOneOf ( int classNumber ) : double[]

Perform the encoding for "one of".

EncodeSingleField ( int classNumber ) : double[]

Encode a single field.

Описание методов

AddRawHeadings() публичный Метод

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.
Результат void

AnalystField() публичный Метод

Construct the object with a range of 1 and -1.
public AnalystField ( ) : System
Результат System

AnalystField() публичный Метод

Construct an analyst field. Works like a C++ copy constructor.
public AnalystField ( AnalystField field ) : System
field AnalystField The field to clone.
Результат System

AnalystField() публичный Метод

Construct an object.
public AnalystField ( NormalizationAction theAction, String theName ) : System
theAction NormalizationAction The desired action.
theName String The name of this column.
Результат System

AnalystField() публичный Метод

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.
Результат System

AnalystField() публичный Метод

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.
Результат System

AnalystField() публичный Метод

Construct the object.
public AnalystField ( double theNormalizedHigh, double theNormalizedLow ) : System
theNormalizedHigh double The normalized high.
theNormalizedLow double The normalized low.
Результат System

Analyze() публичный Метод

Analyze the specified value. Adjust min/max as needed. Usually used only internally.
public Analyze ( double d ) : void
d double The value to analyze.
Результат void

DeNormalize() публичный Метод

Denormalize the specified value.
public DeNormalize ( double v ) : double
v double The value to normalize.
Результат double

DetermineClass() публичный Метод

Determine what class the specified data belongs to.
public DetermineClass ( double data ) : ClassItem
data double The data to analyze.
Результат Encog.Util.Arrayutil.ClassItem

DetermineClass() публичный Метод

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.
Результат Encog.Util.Arrayutil.ClassItem

DetermineMode() публичный Метод

Determine the mode, this is the class item that has the most instances.
public DetermineMode ( EncogAnalyst analyst ) : int
analyst EncogAnalyst The analyst to use.
Результат int

Encode() публичный Метод

Encode the string to numeric form.
public Encode ( String str ) : double[]
str String The string to encode.
Результат double[]

Encode() публичный Метод

Encode the class.
public Encode ( int classNumber ) : double[]
classNumber int The class number.
Результат double[]

EncodeEquilateral() публичный Метод

Perform an equilateral encode.
public EncodeEquilateral ( int classNumber ) : double[]
classNumber int The class number.
Результат double[]

FixSingleValue() публичный Метод

Fix normalized fields that have a single value for the min/max. Separate them by 2 units.
public FixSingleValue ( ) : void
Результат void

Init() публичный Метод

Init any internal structures.
public Init ( ) : void
Результат void

Lookup() публичный Метод

Lookup the specified field.
public Lookup ( String str ) : int
str String The name of the field to lookup.
Результат int

MakeClass() публичный Метод

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.
Результат void

MakeClass() публичный Метод

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.
Результат void

MakePassThrough() публичный Метод

Make this a pass-through field.
public MakePassThrough ( ) : void
Результат void

Normalize() публичный Метод

Normalize the specified value.
public Normalize ( double v ) : double
v double The value to normalize.
Результат double

ToString() публичный закрытый Метод

public final ToString ( ) : String
Результат String