Public Member Functions |
Public Attributes |
Private Member Functions |
Private Attributes |
List of all members
FunctionNorm.FunctionNorm Class Reference
Inheritance diagram for FunctionNorm.FunctionNorm:
Public Member Functions | |
def | __init__ (self, fn, invfn, vmin=None, vmax=None, clip=False) |
def | __call__ (self, value, clip=None) |
def | inverse (self, value) |
def | autoscale (self, A) |
def | autoscale_None (self, A) |
Public Attributes | |
fn | |
invfn | |
vmin | |
vmax | |
Private Member Functions | |
def | _transform_vmin_vmax (self) |
Private Attributes | |
_lower | |
Detailed Description
Normalize a given value to the ``[0, 1]`` interval with a power-law scaling. This will clip any negative data points to 0.
Definition at line 14 of file FunctionNorm.py.
Constructor & Destructor Documentation
◆ __init__()
def FunctionNorm.FunctionNorm.__init__ | ( | self, | |
fn, | |||
invfn, | |||
vmin = None , |
|||
vmax = None , |
|||
clip = False |
|||
) |
Definition at line 19 of file FunctionNorm.py.
Member Function Documentation
◆ __call__()
def FunctionNorm.FunctionNorm.__call__ | ( | self, | |
value, | |||
clip = None |
|||
) |
Definition at line 24 of file FunctionNorm.py.
◆ _transform_vmin_vmax()
|
private |
Calculates vmin and vmax in the transformed system.
Definition at line 51 of file FunctionNorm.py.
◆ autoscale()
def FunctionNorm.FunctionNorm.autoscale | ( | self, | |
A | |||
) |
Set *vmin*, *vmax* to min, max of *A*.
Definition at line 72 of file FunctionNorm.py.
◆ autoscale_None()
def FunctionNorm.FunctionNorm.autoscale_None | ( | self, | |
A | |||
) |
Definition at line 80 of file FunctionNorm.py.
◆ inverse()
def FunctionNorm.FunctionNorm.inverse | ( | self, | |
value | |||
) |
Definition at line 59 of file FunctionNorm.py.
Member Data Documentation
◆ _lower
|
private |
Definition at line 57 of file FunctionNorm.py.
◆ fn
FunctionNorm.FunctionNorm.fn |
Definition at line 21 of file FunctionNorm.py.
◆ invfn
FunctionNorm.FunctionNorm.invfn |
Definition at line 22 of file FunctionNorm.py.
◆ vmax
FunctionNorm.FunctionNorm.vmax |
Definition at line 77 of file FunctionNorm.py.
◆ vmin
FunctionNorm.FunctionNorm.vmin |
Definition at line 76 of file FunctionNorm.py.
The documentation for this class was generated from the following file:
- /home/webadmin/src/fosite/src/tools/plot/FunctionNorm.py