Package cosmolopy :: Module utils :: Class Normalize

Class Normalize

source code

A decorator that normalizes a function.

Only works for functions of a single variable.

The new function is normalized over the interval from min to max, i.e. the integral of the new function from low to high is one.

Instance Methods
 
__init__(self, min, max, quiet=False, **kwargs) source code
 
__call__(self, function) source code