|
libkissinferencesharp 1.0.x
|
This Class holds an impedance spectra and provides various transformations that are required to get the values into a form expected by kiss networks. More...
Public Member Functions | |
| Spectra (float[] Real, float[] Imaginary, float[] Omega) | |
| This constructor constructs a spectra from a series of arrays. | |
| Spectra (double[] Real, double[] Imaginary, double[] Omega) | |
| This constructor constructs a spectra from a series of arrays. | |
| void | Normalize () |
| This method normalizes the data into the range [0, 1]. | |
| void | Resample (int newSize) |
| This method resamples the spectra to the size given in newSize. | |
| Tuple< float, float > | Absgrad (int index) |
| Approximate the element wise absolute gradient at the given point of the sepctra in the place given. | |
| bool | Filter (int outputSize) |
| Applies the same series of filteres used by kiss networks (applied by TorchKissAnn) during training. | |
| bool | Reduce (float threshFactor, bool useSecondDeriv) |
| Applies the same series of filteres used by kiss networks (applied by TorchKissAnn) during training. | |
Public Attributes | |
| float[] | Real |
| The real part of the spectra. | |
| float[] | Imaginary |
| The imaginary part of the spectra. | |
| float[] | Omega |
| The frequencys of the datapoints of the spectra. | |
This Class holds an impedance spectra and provides various transformations that are required to get the values into a form expected by kiss networks.
|
inline |
This constructor constructs a spectra from a series of arrays.
| Real | The real part of the spectra |
| Imaginary | The imaginary part of the spectra, its length must be the same as Real |
| Omega | The frequency values in rad/s of eatch datapoint, its lenght must be the same as Real |
| Kiss.EnviromentException | Thrown if the enviroment is unacceptable for the operation of this libaray |
References Kiss.Utils.CheckEnvThrow(), Kiss.Spectra.Imaginary, Kiss.Spectra.Omega, and Kiss.Spectra.Real.
|
inline |
This constructor constructs a spectra from a series of arrays.
| Real | The real part of the spectra |
| Imaginary | The imaginary part of the spectra, its length must be the same as Real |
| Omega | The frequency values in rad/s of eatch datapoint, its lenght must be the same as Real |
References Kiss.Spectra.Imaginary, Kiss.Spectra.Omega, and Kiss.Spectra.Real.
|
inline |
Approximate the element wise absolute gradient at the given point of the sepctra in the place given.
| index | The index at which to aproxmiate the gradiant |
References Kiss.Spectra.Imaginary, Kiss.Spectra.Omega, and Kiss.Spectra.Real.
|
inline |
Applies the same series of filteres used by kiss networks (applied by TorchKissAnn) during training.
In almost all cases this function should be called before a sepctra is given to a kiss network.
| outputSize | the length the spectra should have after filtering |
References Kiss.Spectra.Imaginary, Kiss.Spectra.Omega, and Kiss.Spectra.Real.
|
inline |
Applies the same series of filteres used by kiss networks (applied by TorchKissAnn) during training.
In almost all cases this function should be called before a sepctra is given to a kiss network.
| outputSize | the length the spectra should have after filtering |
References Kiss.Spectra.Imaginary, Kiss.Spectra.Omega, and Kiss.Spectra.Real.
|
inline |
This method resamples the spectra to the size given in newSize.
Upsampling is achived via linear interpolation, downsampling is achived via the nearest-neighbor method.
| newSize | The size to resample the spectra to |
References Kiss.Spectra.Imaginary, and Kiss.Spectra.Real.