Core API Reference#
ReceptorEstimator class#
|
Core class in drEye for analyzing and fitting to capture values given a set of receptor filters and a set of stimulation sources that comprise an experimental system. |
Template functions#
|
Create Gaussian filter template normalized to the max. |
|
Calculate Opsin template according to Govardovskii et al (2000). |
|
Calculate opsin template according to Stavenga et al (1993). |
Conversion functions#
|
Convert from irradiance to photonflux. |
|
Convert from photonflux to irradiance. |
|
Optionally convert to units if obj is a pint.Quantity and return numeric value or np.ndarray object. |
|
Check if object has units via duck-typing. |
The unit registry stores the definitions and relationships between units. |
Utility functions#
|
Calculate the L1-norm of an array along a given axis. |
|
Calculate the L2-norm of an array along a given axis. |
|
Calculate the integral of an array over a given domain along an axis. |
|
Calculate the stimulus-induced capture. |
|
Round an array to a specified precision. |
|
Round an array to a specified number of round to significant digits. |
|
Return evenly spaced values within a given interval. |
Barycentric functions#
|
Convert from barycentric coordinates to cartesian coordinates |
|
Convert from cartesian to barycentric coordinates. |
Convex Hull functions#
|
Check if points B are in the convex hull of P. |
|
Calculate the range of solutions for a bound-constrained system of linear equations. |
Domain functions#
|
Equalize domains between different arrays. |
Metrics functions#
|
Compute Jensen-Shannon divergence between two probability distributions P and Q. |
Compute Jensen-Shannon similarity between two probability distributions P and Q. |
|
|
Compute mean width of a matrix X by projecting it onto random vectors. |
Compute mean correlation of a matrix X. |
|
|
Compute mean mutual information of a matrix X. |
Compute volume of a matrix X. |
|
|
Compute absolute gamut of a matrix X. |
Projection functions#
|
This function projects the input array P until it defines a convex hull. |
|
Project the points that project the convex hull entailed by P onto the simplex with sum of c. |
|
This function finds the point where the line defined by vectors x1 and x2 intersects with the simplex with sum of c. |
|
Project B to the convex hull defined by the hyperplane equations of the facets. |
|
Get the multiple of vector that intersects with the hull. |
|
Find the hull intersection of vectors B. |
Sampling functions#
|
Sampling uniformly from the convex hull defined by points P. |
|
Creates equally spaced samples in d dimensions. |
Spherical functions#
Convert from spherical to cartesian coordinates. |
|
Convert from cartesian to spherical coordinates. |