Exemplo n.º 1
0
 public void SetIndependentVariable(string name, double val)
 {
     prmtrs[name].SetConstantVal(val);
     functions[prmtrs[name]] = new Evaluator(val);
 }
Exemplo n.º 2
0
 public void SetSystemZero(string name, Evaluator function)
 {
     prmtrs[name].SetDependencies(function.Dependencies);
     functions[prmtrs[name]] = function;
     if (function.Dependencies.Where(i => i.ParameterName == name).Count() == 0) {
         throw new Exception("This parameter is not self dependent.");
     }
 }
Exemplo n.º 3
0
 public void SetDependentVariable(string name, Evaluator function)
 {
     prmtrs[name].SetDependencies(function.Dependencies);
     functions[prmtrs[name]] = function;
     if (function.Dependencies.Where(i => i.ParameterName == name).Count() > 0) {
         throw new Exception("This parameter is self dependent. Should be set to zero.");
     }
 }