BasicStats<T>
Models & Types · AiDotNet.Statistics
Provides a collection of basic statistical measures for a set of numeric values.
For Beginners
Think of BasicStats as a calculator that analyzes a set of numbers and tells you their important patterns and characteristics.
It answers questions like:
- What’s the typical value? (Mean, Median)
- How spread out are the values? (Variance, StandardDeviation)
- What’s the range of values? (Min, Max, InterquartileRange)
- Is the distribution skewed or symmetric? (Skewness)
- Are there unusual extreme values? (Kurtosis)
For example, if you have test scores from a class:
- Mean tells you the average score
- StandardDeviation tells you how much scores vary from that average
- Skewness might reveal if more students scored above or below average
These statistics help you understand your data at a glance without having to examine every value.
How It Works
BasicStats calculates and stores a comprehensive set of descriptive statistics for a collection of values, including measures of central tendency, dispersion, and distribution shape. These statistics provide insights into the characteristics of the data distribution.
Properties
| Property | Summary |
|---|---|
T FirstQuartile { get; set; } |
|
T InterquartileRange { get; set; } |
|
T Kurtosis { get; set; } |
|
T MAD { get; set; } |
|
T Max { get; set; } |
|
T Mean { get; set; } |
|
T Median { get; set; } |
|
T Min { get; set; } |
|
T Skewness { get; set; } |
|
T StandardDeviation { get; set; } |
|
T ThirdQuartile { get; set; } |
|
T Variance { get; set; } |
|
int N { get; set; } |
Methods
| Method | Summary |
|---|---|
BasicStats<T> Empty() |
Creates an empty BasicStats object with all statistics set to their default values. |
T GetMetric(MetricType metricType) |
Gets the value of a specific metric based on the provided MetricType. |
bool HasMetric(MetricType metricType) |
Checks if a specific metric is available in this BasicStats instance. |