• Home
  • History
  • Annotate
  • Raw
  • Download

Lines Matching refs:RandomVariable

33 int RandomVariable::defaultValue = 10;
112 RandomVariable::RandomVariable(int value) : mVar(new RandomVariableBase(value)) { in RandomVariable() function in android::nn::fuzzing_test::RandomVariable
116 RandomVariable::RandomVariable(int lower, int upper) : mVar(new RandomVariableBase(lower, upper)) { in RandomVariable() function in android::nn::fuzzing_test::RandomVariable
120 RandomVariable::RandomVariable(const std::vector<int>& choices) in RandomVariable() function in android::nn::fuzzing_test::RandomVariable
125 RandomVariable::RandomVariable(RandomVariableType type) in RandomVariable() function in android::nn::fuzzing_test::RandomVariable
131 RandomVariable::RandomVariable(const RandomVariable& lhs, const RandomVariable& rhs, in RandomVariable() function in android::nn::fuzzing_test::RandomVariable
136 mVar->parent1 = RandomVariable(mVar->parent1->value).get(); in RandomVariable()
139 mVar->parent2 = RandomVariable(mVar->parent2->value).get(); in RandomVariable()
147 void RandomVariable::setRange(int lower, int upper) { in setRange()
514 RandomVariable operator+(const RandomVariable& lhs, const RandomVariable& rhs) { in operator +()
515 return lhs.get() == rhs.get() ? RandomVariable(lhs, 2, Singleton<Multiplication>::get()) in operator +()
516 : RandomVariable(lhs, rhs, Singleton<Addition>::get()); in operator +()
518 RandomVariable operator-(const RandomVariable& lhs, const RandomVariable& rhs) { in operator -()
519 return lhs.get() == rhs.get() ? RandomVariable(0) in operator -()
520 : RandomVariable(lhs, rhs, Singleton<Subtraction>::get()); in operator -()
522 RandomVariable operator*(const RandomVariable& lhs, const RandomVariable& rhs) { in operator *()
523 return lhs.get() == rhs.get() ? RandomVariable(lhs, RandomVariable(), Singleton<Square>::get()) in operator *()
524 : RandomVariable(lhs, rhs, Singleton<Multiplication>::get()); in operator *()
526 RandomVariable operator*(const RandomVariable& lhs, const float& rhs) { in operator *()
527 return RandomVariable(lhs, RandomVariable(), std::make_shared<FloatMultiplication>(rhs)); in operator *()
529 RandomVariable operator/(const RandomVariable& lhs, const RandomVariable& rhs) { in operator /()
530 return lhs.get() == rhs.get() ? RandomVariable(1) in operator /()
531 : RandomVariable(lhs, rhs, Singleton<Division>::get()); in operator /()
533 RandomVariable operator%(const RandomVariable& lhs, const RandomVariable& rhs) { in operator %()
534 return lhs.get() == rhs.get() ? RandomVariable(0) in operator %()
535 : RandomVariable(lhs, rhs, Singleton<Modulo>::get()); in operator %()
537 RandomVariable max(const RandomVariable& lhs, const RandomVariable& rhs) { in max()
538 return lhs.get() == rhs.get() ? lhs : RandomVariable(lhs, rhs, Singleton<Maximum>::get()); in max()
540 RandomVariable min(const RandomVariable& lhs, const RandomVariable& rhs) { in min()
541 return lhs.get() == rhs.get() ? lhs : RandomVariable(lhs, rhs, Singleton<Minimum>::get()); in min()
544 RandomVariable RandomVariable::exactDiv(const RandomVariable& other) { in exactDiv()
545 return mVar == other.get() ? RandomVariable(1) in exactDiv()
546 : RandomVariable(*this, other, Singleton<ExactDivision>::get()); in exactDiv()
549 RandomVariable RandomVariable::setEqual(const RandomVariable& other) const { in setEqual()
557 return RandomVariable(); in setEqual()
583 return RandomVariable(*this, other, Singleton<Equal>::get()); in setEqual()
586 RandomVariable RandomVariable::setGreaterThan(const RandomVariable& other) const { in setGreaterThan()
588 return RandomVariable(*this, other, Singleton<GreaterThan>::get()); in setGreaterThan()
590 RandomVariable RandomVariable::setGreaterEqual(const RandomVariable& other) const { in setGreaterEqual()
592 : RandomVariable(*this, other, Singleton<GreaterEqual>::get()); in setGreaterEqual()
630 RandomVariable::defaultValue = defaultValue; in initialize()
1032 void RandomVariableNetwork::addDimensionProd(const std::vector<RandomVariable>& dims) { in addDimensionProd()
1161 bool RandomVariableNetwork::setEqualIfCompatible(const std::vector<RandomVariable>& lhs, in setEqualIfCompatible()
1162 const std::vector<RandomVariable>& rhs) { in setEqualIfCompatible()