P5-statistics-descriptive-discrete

Jul 20, 2023

Compute descriptive statistics for discrete data sets

This module provides basic functions used in descriptive statistics. It borrows very heavily from StatisticsDescriptiveFull which is included with StatisticsDescriptive with one major difference. This module is optimized for discretized data e.g. data from an A/D conversion that has a discrete set of possible values. E.g. if your data is produced by an 8 bit A/D then you’d have only 256 possible values in your data set. Even though you might have a million data points, you’d only have 256 different values in those million points. Instead of storing the entire data set as StatisticsDescriptive does, this module only stores the values it’s seen and the number of times it’s seen each value.

For very large data sets, this storage method results in significant speed and memory improvements. In a test case with 2.6 million data points from a real world application, StatisticsDescriptiveDiscrete took 40 seconds to calculate a set of statistics instead of the 561 seconds required by StatisticsDescriptiveFull. It also required only 4MB of RAM instead of the 400MB used by StatisticsDescriptiveFull for the same data set.



Checkout these related ports:
  • Zn_poly - C library for polynomial arithmetic
  • Zimpl - Language to translate the LP models into .lp or .mps
  • Zegrapher - Software for plotting mathematical objects
  • Zarray - Dynamically typed N-D expression system based on xtensor
  • Z3 - Z3 Theorem Prover
  • Yices - SMT solver
  • Yacas - Yet Another Computer Algebra System
  • Xtensor - Multi-dimensional arrays with broadcasting and lazy computing
  • Xtensor-python - Python bindings for xtensor
  • Xtensor-io - Xtensor plugin to read/write images, audio files, numpy npz and HDF5
  • Xtensor-blas - BLAS extension to xtensor
  • Xspread - Spreadsheet program for X and terminals
  • Xppaut - Graphical tool for solving differential equations, etc
  • Xplot - X11 plotting package
  • Xlife++ - XLiFE++ eXtended Library of Finite Elements in C++