BinnedDataSet¶
-
class
minkit.BinnedDataSet(edges, gaps, pars, values)[source]¶ Bases:
minkit.DataObjectA binned data set.
Parameters: - edges (darray) – edges of the bins.
- gaps (numpy.ndarray) – gaps between edges belonging to different parameters.
- pars (Registry(Parameter)) – data parameters.
- values (darray) – values of the data for each center.
Attributes Summary
aopObject to do operations on arrays. backendBackend interface. boundsBounds of each data parameter. data_parsData parameters associated to this sample. edgesEdges of the histogram. edges_indicesIndices to access the edges. gapsGaps among the different edges. ndimNumber of dimensions. valuesValues of the data set. Methods Summary
from_ndarray(edges, data_par, values[, backend])Build the class from the array of edges and values. to_backend(backend)Initialize this class in a different backend. Attributes Documentation
-
aop¶ Object to do operations on arrays.
Type: ArrayOperations
-
bounds¶ Bounds of each data parameter.
Type: numpy.ndarray
-
edges_indices¶ Indices to access the edges.
Type: numpy.ndarray
-
gaps¶ Gaps among the different edges.
Type: numpy.ndarray
Methods Documentation
-
classmethod
from_ndarray(edges, data_par, values, backend=None)[source]¶ Build the class from the array of edges and values.
Parameters: - edges (numpy.ndarray) – edges of the bins.
- data_par (Parameter) – data parameter.
- values (numpy.ndarray) – values at each bin.
- backend (Backend or None) – backend where the data set is built.
Returns: Binned data set.
Return type: