#include <Perc.h>
Public Member Functions | |
Perceptron () | |
Creates a new perceptron with default time specifics, an empty frequency mask, without hysteresis. | |
~Perceptron () | |
Destroys the perceptron. | |
void | RandomVector () |
Randomly extracts a radius and generates the separation surface of the perceptron as an hypersphere. | |
int | Load (const char *filename) |
Loads the perceptron from a file. | |
int | Save (const char *filename) |
Saves the perceptron. | |
int | Learn (ExampleType *Example, int numExamples, float learningRate) |
Executes a learning cycle on the perceptron. | |
int | Exec (float *Input) |
Calculates the output of the perceptron. | |
void | SetFrequencyMask (FrequencyMaskType fMask, bool useDoppler) |
Sets the percpetron's frequency mask. | |
void | SetTurnOnThreshold (float s) |
Sets the Noise->Whistle (turn-on) threshold. | |
void | SetTurnOffThreshold (float s) |
Sets the Whistle->Noise (turn-off) threshold. | |
void | SetTimes (TimeSpecsType) |
Sets perceptron's time specifics. | |
TimeSpecsType | GetTimes () |
Gets the perceptron's time specifics. | |
FrequencyMaskType | GetFrequencyMask () |
Returns the perceptron's frequency mask. | |
float | GetTurnOnThreshold () |
Returns the perceptron's Noise->Whistle (turn-on) threshold, in dB. | |
float | GetTurnOffThreshold () |
Returns the perceptron's Whistle->Noise (turn-off) threshold, in dB. | |
bool | UseDoppler () |
Tells if the perceptron is using doppler compensation. | |
Public Attributes | |
int | mMicLevel |
IGAIN value used during recognition. | |
Private Attributes | |
int | mState |
status of the perceptron : +1=Whistle, -1=Noise | |
float | mTurnOnThreshold |
Noise->Whistle (turn-on) threshold. | |
float | mTurnOffThreshold |
Whistle->Noise (turn-off) threshold. | |
FrequencyMaskType | mFmask |
standard frequency mask | |
FrequencyMaskType | mExtFmask |
extended frequency mask (including doppler compensation) | |
float | mW [32] |
Weigth vector. | |
bool | mUseDoppler |
Doppler compensation. | |
TimeSpecsType | mTimeSpecs |
Time specifics for the whistle counter. |
|
Creates a new perceptron with default time specifics, an empty frequency mask, without hysteresis.
|
|
Destroys the perceptron.
|
|
Calculates the output of the perceptron.
|
|
Returns the perceptron's frequency mask.
|
|
Gets the perceptron's time specifics.
|
|
Returns the perceptron's Whistle->Noise (turn-off) threshold, in dB.
|
|
Returns the perceptron's Noise->Whistle (turn-on) threshold, in dB.
|
|
Executes a learning cycle on the perceptron.
|
|
Loads the perceptron from a file.
|
|
Randomly extracts a radius and generates the separation surface of the perceptron as an hypersphere.
|
|
Saves the perceptron.
|
|
Sets the percpetron's frequency mask.
|
|
Sets perceptron's time specifics.
|
|
Sets the Whistle->Noise (turn-off) threshold.
|
|
Sets the Noise->Whistle (turn-on) threshold.
|
|
Tells if the perceptron is using doppler compensation.
|
|
extended frequency mask (including doppler compensation)
|
|
standard frequency mask
|
|
IGAIN value used during recognition.
|
|
status of the perceptron : +1=Whistle, -1=Noise
|
|
Time specifics for the whistle counter.
|
|
Whistle->Noise (turn-off) threshold.
|
|
Noise->Whistle (turn-on) threshold.
|
|
Doppler compensation.
|
|
Weigth vector.
|