示例#1
0
 public void SetIndependentVariable(string name, double val)
 {
     prmtrs[name].SetConstantVal(val);
     functions[prmtrs[name]] = new Evaluator(val);
 }
示例#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.");
     }
 }
示例#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.");
     }
 }