BinnedDataSet¶
-
class
minkit.
BinnedDataSet
(edges, gaps, pars, values)[source]¶ Bases:
minkit.pdfs.dataset.DataObject
A binned data set.
- Parameters
edges (darray) – edges of the bins.
gaps (numpy.ndarray) – gaps between edges belonging to different parameters.
values (darray) – values of the data for each center.
Attributes Summary
Object to do operations on arrays.
Backend interface.
Bounds of each data parameter.
Data parameters associated to this sample.
Edges of the histogram.
Indices to access the edges.
Gaps among the different edges.
Number of dimensions.
Values 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
-
bounds
¶ Bounds of each data parameter.
- Type
-
edges_indices
¶ Indices to access the edges.
- Type
-
gaps
¶ Gaps among the different edges.
- Type
-
sample_type
= 'binned'¶
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.
- Returns
Binned data set.
- Return type