Samples (class)
A Samples distribution stores individual samples and draws randomly from them.
NOTE: Samples.weights is only supported with scipy version 1.2+
Treatment under-the-hood:
-
Samples.sample, Samples.mean, Samples.median, Samples.std, and Samples.var act directly on the stored array in Samples.samples, unless Samples.weights are provided, in which case will act on a drawn sample from Samples.sample (with the exception of Samples.mean which calls numpy.average under-the-hood and passes Samples.samples and Samples.weights).
-
all other methods requiring a probability to be computed (Samples.pdf etc) rely on a KDE with Samples.samples, Samples.weights, and Samples.bw_method. See https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.gaussian_kde.html
- arccos
- arcsin
- arctan
- arctan2
- bw_method
- cached_sample
- cdf
- clear_cached_sample
- copy
- cos
- deepcopy
- dist_constructor_args
- dist_constructor_func
- dist_constructor_object
- entropy
- expect
- get_wrap_at
- interval
- isf
- label
- label_latex
- log
- log10
- logcdf
- logpdf
- logsf
- mean
- median
- moment
- nsamples
- plot
- plot_cdf
- plot_gaussian
- plot_pdf
- plot_sample
- plot_uncertainties
- ppf
- sample
- samples
- sf
- sin
- std
- tan
- to
- to_delta
- to_dict
- to_file
- to_gaussian
- to_histogram
- to_json
- to_samples
- to_si
- to_solar
- to_uniform
- uncertainties
- uniqueid
- unit
- var
- weights
- wrap
- wrap_at