48 explicit Descriptives(
const type&,
const type&,
const type&,
const type&);
56 void set(
const type&,
const type&,
const type&,
const type&);
72 void save(
const string &file_name)
const;
74 void print(
const string& =
"Descriptives:")
const;
112 type minimum = type(0);
114 type first_quartile = type(0);
116 type median = type(0);
118 type third_quartile = type(0);
120 type maximum = type(0);
128 explicit BoxPlot(
const type&,
const type&,
const type&,
const type&,
const type&);
133 void set(
const type&,
const type&,
const type&,
const type&,
const type&);
160 explicit Histogram(
const Tensor<type, 1>&,
const Tensor<Index, 1>&);
164 explicit Histogram(
const Tensor<type, 1>&,
const Index&);
168 explicit Histogram(
const Tensor<type, 1>&);
194 void save(
const string&)
const;
214 type minimum(
const Tensor<type, 1>&);
215 type minimum(
const Tensor<type, 1>&,
const Tensor<Index, 1>&);
216 Index minimum(
const Tensor<Index, 1>&);
217 type minimum(
const Tensor<type, 2>&);
218 Tensor<type, 1> columns_minimums(
const Tensor<type, 2>&,
const Tensor<Index, 1>& = Tensor<Index, 1>(),
const Tensor<Index, 1>& = Tensor<Index, 1>());
222 type maximum(
const Tensor<type, 1>&);
223 type maximum(
const Tensor<type, 1>&,
const Tensor<Index, 1>&);
224 Index maximum(
const Tensor<Index, 1>&);
225 type maximum(
const Tensor<type, 2>&);
226 Tensor<type, 1> columns_maximums(
const Tensor<type, 2>&,
const Tensor<Index, 1>& = Tensor<Index, 1>(),
const Tensor<Index, 1>& = Tensor<Index, 1>());
229 type range(
const Tensor<type, 1>&);
232 type mean(
const Tensor<type, 1>&);
233 type mean(
const Tensor<type, 1>&,
const Index&,
const Index&);
234 type mean(
const Tensor<type, 2>&,
const Index&);
235 Tensor<type, 1> mean(
const Tensor<type, 2>&);
236 Tensor<type, 1> mean(
const Tensor<type, 2>&,
const Tensor<Index, 1>&);
237 Tensor<type, 1> mean(
const Tensor<type, 2>&,
const Tensor<Index, 1>&,
const Tensor<Index, 1>&);
240 type median(
const Tensor<type, 1>&);
241 type median(
const Tensor<type, 2>&,
const Index&);
242 Tensor<type, 1> median(
const Tensor<type, 2>&);
243 Tensor<type, 1> median(
const Tensor<type, 2>&,
const Tensor<Index, 1>&);
244 Tensor<type, 1> median(
const Tensor<type, 2>&,
const Tensor<Index, 1>&,
const Tensor<Index, 1>&);
247 type variance(
const Tensor<type, 1>&);
248 type variance(
const Tensor<type, 1>&,
const Tensor<Index, 1>&);
251 type standard_deviation(
const Tensor<type, 1>&);
252 type standard_deviation(
const Tensor<type, 1>&,
const Tensor<Index, 1>&);
253 Tensor<type, 1> standard_deviation(
const Tensor<type, 1>&,
const Index&);
256 type asymmetry(
const Tensor<type, 1>&);
259 type kurtosis(
const Tensor<type, 1>&);
262 Tensor<type, 1> quartiles(
const Tensor<type, 1>&);
263 Tensor<type, 1> quartiles(
const Tensor<type, 1>&,
const Tensor<Index, 1>&);
266 BoxPlot box_plot(
const Tensor<type, 1>&);
267 BoxPlot box_plot(
const Tensor<type, 1>&,
const Tensor<Index, 1>&);
273 Tensor<Descriptives, 1> descriptives(
const Tensor<type, 2>&);
274 Tensor<Descriptives, 1> descriptives(
const Tensor<type, 2>&,
const Tensor<Index, 1>&,
const Tensor<Index, 1>&);
277 Histogram histogram(
const Tensor<type, 1>&,
const Index& = 10);
278 Histogram histogram_centered(
const Tensor<type, 1>&,
const type& = type(0),
const Index& = 10);
279 Histogram histogram(
const Tensor<bool, 1>&);
280 Histogram histogram(
const Tensor<Index, 1>&,
const Index& = 10);
281 Tensor<Histogram, 1> histograms(
const Tensor<type, 2>&,
const Index& = 10);
282 Tensor<Index, 1> total_frequencies(
const Tensor<Histogram, 1>&);
285 Index perform_distribution_distance_analysis(
const Tensor<type, 1>&);
286 type normal_distribution_distance(
const Tensor<type, 1>&);
287 type half_normal_distribution_distance(
const Tensor<type, 1>&);
288 type uniform_distribution_distance(
const Tensor<type, 1>&);
291 type normality_parameter(
const Tensor<type, 1>&);
294 Index minimal_index(
const Tensor<type, 1>&);
295 Tensor<Index, 1> minimal_indices(
const Tensor<type, 1>&,
const Index&);
296 Tensor<Index, 1> minimal_indices(
const Tensor<type, 2>&);
299 Index maximal_index(
const Tensor<type, 1>&);
300 Tensor<Index, 1> maximal_indices(
const Tensor<type, 1>&,
const Index&);
301 Tensor<Index, 1> maximal_indices(
const Tensor<type, 2>&);
302 Tensor<Index, 2> maximal_columns_indices(
const Tensor<type, 2>&,
const Index&);
303 Tensor<type, 1> variation_percentage(
const Tensor<type, 1>&);
306 Tensor<Index, 1> maximal_indices();
307 Tensor<Tensor<Index, 1>, 1> minimal_maximal_indices();
310 Tensor<type, 1> percentiles(
const Tensor<type, 1>&);
313 Tensor<type, 1> means_by_categories(
const Tensor<type, 2>& matrix);
316 Index count_nan(
const Tensor<type, 1>&);
Extensions to the C++ standard library.
This structure contains the simplest Descriptives for a set, variable, etc. It includes :
bool has_minimum_minus_one_maximum_one()
Tensor< type, 1 > to_vector() const
Descriptives()
Default constructor.
bool has_mean_zero_standard_deviation_one()
virtual ~Descriptives()
Destructor.
void print(const string &="Descriptives:") const
Print the tittle of descriptives structure.
type minimum
Smallest value of a set, function, etc.
string name
Name of variable.
void set_maximum(const type &)
void set_standard_deviation(const type &)
type standard_deviation
Standard deviation value of a set, function, etc.
void set_mean(const type &)
type mean
Mean value of a set, function, etc.
void set_minimum(const type &)
type maximum
Biggest value of a set, function, etc.
void save(const string &file_name) const
virtual ~Histogram()
Destructor.
Index calculate_most_populated_bin() const
Retuns the index of the most populated bin.
Index count_empty_bins() const
Returns the number of bins with zero variates.
Tensor< type, 1 > minimums
Minimum positions of the bins in the histogram.
Index calculate_minimum_frequency() const
Returns the number of variates in the less populated bin.
Index calculate_frequency(const type &) const
Tensor< type, 1 > calculate_minimal_centers() const
Returns a vector with the centers of the less populated bins.
Tensor< type, 1 > calculate_maximal_centers() const
Returns a vector with the centers of the most populated bins.
Index calculate_bin(const type &) const
Index calculate_maximum_frequency() const
Returns the number of variates in the most populated bin.
Tensor< type, 1 > maximums
Maximum positions of the bins in the histogram.
Tensor< Index, 1 > frequencies
Population of the bins in the histogram.
Tensor< type, 1 > centers
Positions of the bins in the histogram.
Histogram()
Default constructor.
Index get_bins_number() const
Returns the number of bins in the histogram.