VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
prbStepFunctionDeterminant.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
15 #include <vlutil/vlMachineTypes.h>
16 
17 class DtString;
19 class DtPrbValueList;
20 
26 {
27 
28 public:
29  //default constructor
31 
34  DtReaderWriterRegistry* parentRegistry = NULL);
36  DtReaderWriterRegistry* parentRegistry = NULL);
37 
39  DtPrbStepFunctionDeterminant(const DtString& name, const
41  parentRegistry = NULL);
44  parentRegistry = NULL);
45 
48 
51 
52  virtual DtPrbDeterminant* clone(const DtString& name,
53  DtReaderWriterRegistry* parentRegistry = NULL) const;
54  virtual DtPrbDeterminant* clone(const DtSymbolString& name,
55  DtReaderWriterRegistry* parentRegistry = NULL) const;
56 
58  virtual void addTableEntry(const DtPrbValueList& tableEntry);
59 
62  virtual void getProbabilities(DtReal value, DtPrbValueList* entry) const;
63 
65  virtual double getMaximumInputValue() const;
66 
68  virtual double getMinimumInputValue() const;
69 
71  virtual const DtPrbStepFunction& stepFunction() const;
72 
73  bool operator==(const DtPrbStepFunctionDeterminant&) const;
75  {
76  return !(*this == rhs);
77  }
78 
80  virtual double solveForMaximum() const;
81 
84  virtual void setRoundDown(bool);
85  virtual bool roundDown() const;
87 
89  virtual bool isValid() const;
90 
92  virtual bool removeValue(double);
93 
95  virtual double value(int index) const;
96 
99  virtual DtPrbValueList* changeValue(double oldValue, double newValue, int* newColumn = 0);
100 
102  virtual DtPrbValueList* changeValueForColumn(int col, double newRange, int* newColumn = 0);
103 
105  virtual int indexOfValue(double) const;
106 
108  virtual void setStepFunction(const DtPrbStepFunction&);
109 
110 protected:
111 
115 
124 
126 
127 };
128 
129 
130 
131 
bool operator==(const DtReaderWriter &) const
Equivalence operator.
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
virtual void getProbabilities(DtReal value, DtPrbValueList *entry) const =0
The caller provides a pointer to a DtPrbValueList, which is filled in with the appropriate set of pro...
DtPrbDeterminant is an abstract class whose deriving classes provided a list of kill probabilities ba...
Definition: prbDeterminant.h:24
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
Definition: prbStepFunction.h:24
virtual double getMaximumInputValue() const =0
Determines the maximum input value that produces any probability.
Definition: readerWriterRegistry.h:39
virtual double getMinimumInputValue() const =0
Determines the minimum input value that produces any probability.
DtPrbValueList.
Definition: prbValueList.h:19
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.
Definition: prbStepFunctionDeterminant.h:25
const DtPrbDeterminant & operator=(const DtPrbDeterminant &orig)
virtual DtPrbDeterminant * clone(const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL) const =0
DtPrbStepFunction myStepFunction
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: .
Definition: prbStepFunctionDeterminant.h:123
bool operator!=(const DtPrbStepFunctionDeterminant &rhs) const
Definition: prbStepFunctionDeterminant.h:74

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)