Construct a new C2Function.
Reimplemented from C2Function. Definition at line 1457 of file C2Functions.py. 01457 : 01458 "create the C2InverseFunction from the given function, and set the initial search to be from the center of the domain" 01459 self.fn=sourceFunction 01460 l,r=sourceFunction.GetDomain() 01461 self.start_hint=(l+r)*0.5 01462 # compute our domain assuming the function is monotonic so its values on its domain boundaries are our domain 01463 ly=sourceFunction(l) 01464 ry=sourceFunction(r) 01465 if ly>ry: ly, ry = ry, ly 01466 self.SetDomain(ly, ry) 01467 def set_start_hint(self, hint):
|