Density#
The density module provides an abstract representation of N-dimensional densities, facilitating operations and manipulations of multi-dimensional data.
Constructor#
Abstract representation of N-dimensional densities. |
Attributes and underlying data#
Returns the value of |
|
Returns the value of the instance's |
|
Returns the value of the instance's |
|
Returns the instance's |
|
Returns the dimensions of |
|
Returns a copy of the class instance with all elements in |
Serialization#
|
Writes class instance to disk. |
|
Reads a file into a |
|
Reads in an atomic structure and converts it into a |
Conversion#
Create a copy of the class instance. |
|
Converts |
|
Converts |
Subsetting#
|
|
|
Computes a rectangle with sufficient dimension that encloses all values of the internal data array larger than the specified cutoff, expanded by the specified margin. |
|
Shifts the data center of mass to the center of the data array using linear interpolation. |
|
Adjusts |
|
Compute the enclosing box that holds all possible rotations of the internal data array. |
Computations#
|
Performs a rigid transform of the class instance. |
|
Returns data indices that are larger than the given threshold. |
|
Resamples |
|
Computes the density boundary of the class instance. |
|
Calculates the surface coordinates of the class instance using different boundary and surface detection methods. |
|
Calculates the normal vectors for the given coordinates on the densities of the class instance. |
Calculates a weighted core mask by performing iterative binary erosion on |
|
|
Computes the center of mass of a numpy ndarray instance using all available elements. |
|
Aligns two |
|
Aligns a |
|
Computes the Fourier Shell Correlation (FSC) between two instances of Density. |