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 
50  virtual ~DtPrbStepFunctionDeterminant() override;
51 
52  virtual DtPrbDeterminant* clone(const DtString& name, DtReaderWriterRegistry* parentRegistry = NULL) const override;
53  virtual DtPrbDeterminant* clone(
54  const DtSymbolString& name, DtReaderWriterRegistry* parentRegistry = NULL) const override;
55 
57  virtual void addTableEntry(const DtPrbValueList& tableEntry);
58 
61  virtual void getProbabilities(DtReal value, DtPrbValueList* entry) const override;
62 
64  virtual double getMaximumInputValue() const override;
65 
67  virtual double getMinimumInputValue() const override;
68 
70  virtual const DtPrbStepFunction& stepFunction() const;
71 
72  bool operator==(const DtPrbStepFunctionDeterminant&) const;
74  {
75  return !(*this == rhs);
76  }
77 
79  virtual double solveForMaximum() const;
80 
83  virtual void setRoundDown(bool);
84  virtual bool roundDown() const;
86 
88  virtual bool isValid() const;
89 
91  virtual bool removeValue(double);
92 
94  virtual double value(int index) const;
95 
98  virtual DtPrbValueList* changeValue(double oldValue, double newValue, int* newColumn = 0);
99 
101  virtual DtPrbValueList* changeValueForColumn(int col, double newRange, int* newColumn = 0);
102 
104  virtual int indexOfValue(double) const;
105 
107  virtual void setStepFunction(const DtPrbStepFunction&);
108 
109 protected:
110 
114 
123 
125 
126 };
127 
128 
129 
130 
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:122
bool operator!=(const DtPrbStepFunctionDeterminant &rhs) const
Definition: prbStepFunctionDeterminant.h:73

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)