This section purports to document the esofspy internals.
Finds n_max directions of blood vessels with the highest length densities.
Parameters: | - data_sorted : array - n_max : int |
---|---|
Returns: | - (h_azim, v_elev) : array - vector : array - vector_mean : array |
Plots n_max cardinal directions.
Parameters: | - fig : int - data_sorted : array - ii : int - n_max : int - plot_axes : bool |
---|---|
Returns: | - v1 : array - h1 : array |
Computes fractions of lengths of blood vessels in all directions: , where is the length of blood vessels in given direction, is total number of directions.
Parameters: | - data : array |
---|---|
Returns: | - fraction : array |
Chi-square test of fractions distribution: , where is observed value, is expected value, is total number of values. In our case is value of fraction when we assumed uniform distribution, i.e. , where = number of elevation divisions and = number of azimuth divisions.
Parameters: | - data : array - fraction : array |
---|---|
Returns: | - chi_square : float |
Evaluates fractional and ellipsoidal anisotropy from the line system in file tracer. The ellipsoidal anisotropy has the values from 1 (isotropy - lines express no preferential direction) to infinity (total anisotropy - all lines run in the same direction). The fractional anisotropy has the values from 0 (isotropy) to 1 (anisotropy).
Parameters: | - n_tracer_data: int : - tracer_data : array - calibration: array : |
---|---|
Returns: | - fractional_anisotropy : float - ellipsoidal_anisotropy : float |
Evaluates value of chi-square with respect to the probability value: = anisotropic distribution, = isotropic distribution.
Parameters: | - chi_square : float |
---|---|
Returns: | - p_val : float |
Evaluates value of ellipsoidal aninisotropy (EA): ‘ EA = 1 = isotropic system, EA = infinity = anisotropic system with very strong preferential directions.
Parameters: | - ellipsoidal_anisotropy : |
---|
Evaluates value of fractional anisotropy (FA): FA = 0 = isotropic system, FA 1 = anisotropic system with very strong preferential directions.
Parameters: | - fractional_anisotropy : |
---|
Evaluates isotropy:
Isotropic means “independent of direction”. Isotropic radiation has the same intensity regardless of the direction of measurement, and an isotropic field exerts the same action regardless of how the test particle is oriented. This evaluation is based on the chi-square test; null hypothesis the observed fractions have uniform distribution (through all directions).
Parameters: | - data : array |
---|---|
Returns: | - chi_square : float - p_val : float - mean_fraction : float - std_fraction : float |
Finds the number of directions necesarry to covered threshold value, i.e. given fraction of length densities .
Parameters: | - fraction : array - threshold : float |
---|---|
Returns: | - n_max : int |
Counts and draws histogram: distribution of lengths of blood vessels.
Parameters: | - fig : int - data : array - title_prefix : str |
---|
Counts and draws histogram: distribution of fractions of lengths of blood vessels, i.e. , where is the length of blood vessels in given direction, is total number of directions.
Parameters: | - fig : int - data : array - fraction : array - title_prefix : str |
---|
Counts lambert axes.
Parameters: | - az : int - el : int |
---|---|
Returns: | - x_lambert : float - y_lambert : float |
Loads data from tracer file.
Parameters: | - filename : str |
---|---|
Returns: | - tracer_data : array - n_tracer_data : int |
Plots lambert axes.
Parameters: | - fig : int - x : int - txt : int |
---|
Reads histograms.
Parameters: | - filename : str - vs, hs : int |
---|---|
Returns: | - data : array |
Draws original rose of directions based on dividing given by and (elevations and azimuths).
Parameters: | - fig : int - data : array |
---|
Draws scaled rose of directions based on dividing given by and (elevations and azimuths).
Parameters: | - fig : int - data : array |
---|
Sorts data in ascending manner.
Parameters: | - data : array |
---|---|
Returns: | - data_sorted : array |
Converts elevation and azimuth angles to direction vectors.
Parameters: | - elev : float - azim : float |
---|---|
Returns: | - direction : array |
Converts from v, h to elevation and azimuth angles.
Parameters: | - v : int - h : int - v_elev : int - h_azim : int |
---|---|
Returns: | - elev : float - azim : float |
Converts from v, h to coordinates of vector in half cell (spherical tetragon).
Parameters: | - v : int - h : int - v_elev : int - h_azim : int |
---|---|
Returns: | - direction : array |
Generates uniformly spaced elevation and azimuth angles given the number of parallels and meridians.
Parameters: | - v_elev : int - h_azim : int |
---|---|
Returns: | - elev : float - azim : float |
Creates a rotation matrix corresponding to the rotation around a general axis by a specified angle.
Parameters: | - direction : array - angle : float |
---|---|
Returns: | - mtx : array |