def SquareNormalizedFunction (   self,
  xmin,
  xmax,
  weight = None,
  norm = 1 
)

return a new C2Function which has square-integral norm on (xmin, xmax ) with weight function weight

Parameters:
xmin the lower bound for the normalization
xmax the upper bound for the normalization
weight the weight function. Unity if omitted.
norm the desired integral
Returns:
the new function

Definition at line 506 of file C2Functions.py.

00506                                                                        :
00507         "return a function whose square integral on [xmin, xmax] with optional weight function is norm"
00508         mesquared=C2Quadratic(a=1.0)(self)
00509         if weight is not None:
00510             mesquared=mesquared*weight
00511             
00512         grid=self.GetSamplingGrid(xmin, xmax)
00513         intg=sum(mesquared.partial_integrals(grid))
00514         return C2ScaledFunction(self, math.sqrt(norm/intg))
00515     
00516 
##


Generated on Wed Nov 21 10:18:31 2007 for analysis by  doxygen 1.5.4