![]() |
VR-Forces 4.6.1 Class Documentation
|
DtPrbStepFunctionDeterminant provides a list of probabilities based on an input value. More...

Public Member Functions | |
| DtPrbStepFunctionDeterminant () | |
| DtPrbStepFunctionDeterminant (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL) | |
| constructor with parameters to set up read/writability correctly | |
| DtPrbStepFunctionDeterminant (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtPrbStepFunctionDeterminant (const DtString &name, const DtPrbStepFunctionDeterminant &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| copy constructor | |
| DtPrbStepFunctionDeterminant (const DtSymbolString &name, const DtPrbStepFunctionDeterminant &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| const DtPrbStepFunctionDeterminant & | operator= (const DtPrbStepFunctionDeterminant &orig) |
| virtual | ~DtPrbStepFunctionDeterminant () |
| destructor | |
| virtual DtPrbDeterminant * | clone (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL) const |
| virtual DtPrbDeterminant * | clone (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL) const |
| virtual void | addTableEntry (const DtPrbValueList &tableEntry) |
| Adds a table entry in sorted (ascending) order. | |
| virtual void | getProbabilities (DtReal value, DtPrbValueList *entry) const |
| The caller provides a pointer to a DtPrbValueList, which is filled in with the appropriate set of probabilities. | |
| virtual double | getMaximumInputValue () const |
| Determines the maximum input value that produces any probability. | |
| virtual double | getMinimumInputValue () const |
| Determines the minimum input value that produces any probability. | |
| virtual const DtPrbStepFunction & | stepFunction () const |
| Accessor for myStepFunction. | |
Protected Attributes | |
parameters | |
These parameters are available for setting in the OPD files. | |
| DtPrbStepFunction | myStepFunction |
| Parameter Name: step-function Parameter Description: List of value/probability entries, in order of increasing value. | |
Additional Inherited Members | |
Public Types inherited from DtReaderWriter | |
| typedef std::vector < DtSymbolString > | aliasContainer |
| typedef std::vector < DtSymbolString >::iterator | aliasIter |
| typedef std::vector < DtSymbolString > ::const_iterator | aliasConstIter |
| typedef std::vector< DtFilename > | SearchPaths |
| typedef std::pair < DtSymbolString, DtString > | DtVariableNameType |
| typedef DtReaderWriterFactory *(* | DtReaderWriterFactoryCreatorFcn )() |
Static Public Member Functions inherited from DtReaderWriter | |
| static void | putIndent (std::string &fp, int indentLevel) |
| static const DtVariableBindingsList & | nullVariableReference () |
| static void | setPostGetSelfCallback (DtGetSelfCallbackFcn fcn, void *usrData) |
| static void | setPrePutSelfCallback (DtPutSelfCallbackFcn fcn, void *usrData) |
| static void | setPutIndent (bool) |
| static bool | putIndent () |
| static const char * | theXmlType () |
| The type that is used when archiving to an XML stream. | |
| static const DtFilename & | appPath () |
| Gets the current working directory. | |
| static void | setFactoryCreatorFunction (DtReaderWriterFactoryCreatorFcn fcn) |
| Sets the function to create the DtReaderWriterFactory. | |
| static void | createReaderWriterFactory () |
| static void | cleanupFactory () |
| static DtReaderWriterFactory * | factory () |
| static DtReaderWriter * | createFromXmlFile (const DtFilename &, bool createAsProperty=false) |
| Given a filename, returns a newly created reader/writer object from the object found within. | |
| static DtReaderWriter * | createFromXml (const DtString &, bool createAsProperty=false) |
| Given a xml string, returns a newly created reader/writer object from the object found within. | |
| static DtReaderWriter * | createFromEnvironment (DtEnvironmentSP, bool createAsProperty=false) |
| Given a xml environment, returns a newly created reader/writer object from the object found within. | |
| static DtString | getAttribute (DtEnvironmentSP env, const DtString &name, DtEnvValueSP root) |
| Gets the named attribute from a DtEnvValueSP. | |
Protected Member Functions inherited from DtPrbDeterminant | |
| DtPrbDeterminant () | |
| default constructor | |
| DtPrbDeterminant (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL) | |
| Constructor with parameters to set up read/writability correctly. | |
| DtPrbDeterminant (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtPrbDeterminant (const DtString &name, const DtPrbDeterminant &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| copy constructor | |
| DtPrbDeterminant (const DtSymbolString &name, const DtPrbDeterminant &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| const DtPrbDeterminant & | operator= (const DtPrbDeterminant &orig) |
| virtual | ~DtPrbDeterminant () |
| destructor | |
Static Protected Attributes inherited from DtReaderWriter | |
| static DtString | theUnspecifiedValue |
| static DtGetSelfCallbackInfo | thePostGetSelfCallback |
| static DtPutSelfCallbackInfo | thePrePutSelfCallback |
| static const DtVariableBindingsList | theEmptyVariableBindingsList |
| static bool | theCreatorFcnSet |
| static DtReaderWriterFactory * | theFactory |
| static DtReaderWriterFactoryCreatorFcn | theFactoryCreatorFcn |
| static bool | thePutIndent |
DtPrbStepFunctionDeterminant provides a list of probabilities based on an input value.
These probabilities are looked up in a table that is managed by the DtPrbStepFunction that is a member of this class.
| DtPrbStepFunctionDeterminant::DtPrbStepFunctionDeterminant | ( | ) |
| DtPrbStepFunctionDeterminant::DtPrbStepFunctionDeterminant | ( | const DtString & | name, |
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
constructor with parameters to set up read/writability correctly
| DtPrbStepFunctionDeterminant::DtPrbStepFunctionDeterminant | ( | const DtSymbolString & | name, |
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
| DtPrbStepFunctionDeterminant::DtPrbStepFunctionDeterminant | ( | const DtString & | name, |
| const DtPrbStepFunctionDeterminant & | orig, | ||
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
copy constructor
| DtPrbStepFunctionDeterminant::DtPrbStepFunctionDeterminant | ( | const DtSymbolString & | name, |
| const DtPrbStepFunctionDeterminant & | orig, | ||
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
|
virtual |
destructor
| const DtPrbStepFunctionDeterminant& DtPrbStepFunctionDeterminant::operator= | ( | const DtPrbStepFunctionDeterminant & | orig | ) |
|
virtual |
Implements DtPrbDeterminant.
|
virtual |
Implements DtPrbDeterminant.
|
virtual |
Adds a table entry in sorted (ascending) order.
|
virtual |
The caller provides a pointer to a DtPrbValueList, which is filled in with the appropriate set of probabilities.
Implements DtPrbDeterminant.
|
virtual |
Determines the maximum input value that produces any probability.
Implements DtPrbDeterminant.
|
virtual |
Determines the minimum input value that produces any probability.
Implements DtPrbDeterminant.
|
virtual |
Accessor for myStepFunction.
|
protected |
Parameter Name: step-function
Parameter Description: List of value/probability entries, in order of increasing value.
The probability for a given entry applies to a value interval going from the value in the previous entry to the current entry value. For the first item in the list, the probability applies to a value of zero to the value specified in the entry.
Parameter Default Value: