nrv.utils
Description
Utils: general purpose functions and classes
utils provides some classes and functions for runing and interconnecting code from the scientific sub-packages.
Classes
Class containg all comon method of fonction used in nrv |
|
class containing function from IR to IR Such function can be call either on 1 value or on a ndarray (and applied on each value) |
|
|
gaussian function define as: |
|
|
class containing function from IR^2 to IR Such function can be call either on 1 value or on a ndarray (and applied on each value) |
|
|
Bi-dimensional Ackley function |
|
Bi-dimensional Beale function |
Bi-dimensional Goldstein function |
|
|
Bi-dimensional Booth function |
|
Bi-dimensional Booth function |
class containing function from IR^n to IR Such function can be call either on 1 value or on a ndarray (and applied on each value) |
|
|
|
Multi-dimensional Rosenbock function |
|
Multi-dimensional Rastrigin function |
|
|
Multi-dimensional Sphere function |
|
Interpolator based on scipy.interpolate |
|
|
|
Stimulus class for NRV2, signals are defined as asynchronous signals, with s the values and t as occurence timings. |
Functions
|
Computes the distance between a point (x_p,y_p) and a line defined as y=a*x+b |
|
Computes the distance between a point (x_p,y_p) and a line defined as y=a*x+b |
|
Return index of neareast value |
|
Return index of neareast greater value |
|
Check if a value is equal to a value +- a tol (excluded). |
|
Return a fascicle's perineurium thickness from its diameter. |
|
compute the complex admitance of a first oder system (of cutoff frequency fc and conductivity g) at a given frequency f |
Print all the default units in nrv. |
|
|
Convert a quantity |
|
Convert a quantity |
|
Convert a quantity |
|
Rounds one or several values to |
|
check if an object is a stimulus, return True if yes, else False |
|
set two signals at the same time samples, missing samples are reconstructed by holding a value |
|
create two stimuli with equal timing as copies of the input ones |
|
Creates a stimulus from sampled data specified in a .dat file |