| MULTIBODY SIMULATION SOFTWARE - API documentation |
#include <CHfunction_Noise.h>


Public Member Functions | |
| void | Copy (ChFunction_Noise *source) |
| ChFunction * | new_Duplicate () |
| void | Set_Amp (double mamp) |
| double | Get_Amp () |
| void | Set_Freq (double mf) |
| double | Get_Freq () |
| void | Set_AmpRatio (double ma) |
| double | Get_AmpRatio () |
| void | Set_Octaves (int mo) |
| int | Get_Octaves () |
| double | Get_y (double x) |
| int | Get_Type () |
| void | StreamOUT (ChStreamOutAscii &mstream) |
| void | StreamIN (ChStreamInBinary &mstream) |
| void | StreamOUT (ChStreamOutBinary &mstream) |
NOISE FUNCTION: y = multi-octave noise with cubic interpolation
| int chrono::ChFunction_Noise::Get_Type | ( | ) | [virtual] |
Each class inherited from the ChFunction class must return an unique integer identifier with the virtual function Get_type(). This is useful for fast run-time downcasting etc.
Reimplemented from chrono::ChFunction.
| double chrono::ChFunction_Noise::Get_y | ( | double | x | ) | [virtual] |
Returns the y value of the function, at position x. (For this base class, it will be a constant value y=C).
Implements chrono::ChFunction.
| void chrono::ChFunction_Noise::StreamIN | ( | ChStreamInBinary & | mstream | ) | [virtual] |
Method to allow deserializing a persistent binary archive (ex: a file) into transient data.
Reimplemented from chrono::ChFunction.
| void chrono::ChFunction_Noise::StreamOUT | ( | ChStreamOutAscii & | mstream | ) | [virtual] |
Method to allow serialization of transient data in ascii, as a readable item, for example "chrono::GetLog() << myobject;"
Reimplemented from chrono::ChFunction.
| void chrono::ChFunction_Noise::StreamOUT | ( | ChStreamOutBinary & | mstream | ) | [virtual] |
Method to allow serializing transient data into a persistent binary archive (ex: a file).
Reimplemented from chrono::ChFunction.
CHRONO::ENGINE