Table of Contents

Class BOBChartBoxStat<TX>

Namespace
BlazOrbit.Charts.Models
Assembly
BlazOrbit.Charts.dll

Pre-computed five-number summary plus optional outliers for one box on a BOBBoxplotChart<TX>. Provide either these directly, or use FromValues(TX, IEnumerable<double>, string?) to compute from raw data.

public sealed class BOBChartBoxStat<TX> where TX : notnull

Type Parameters

TX

Categorical X key (e.g. group / segment).

Inheritance
object
BOBChartBoxStat<TX>

Constructors

BOBChartBoxStat()

public BOBChartBoxStat()

Properties

Color

Optional explicit color for this box.

public string? Color { get; init; }

Property Value

string

Max

Whisker maximum (often Q3 + 1.5·IQR).

public double Max { get; init; }

Property Value

double

Median

Median.

public double Median { get; init; }

Property Value

double

Min

Whisker minimum (often Q1 − 1.5·IQR).

public double Min { get; init; }

Property Value

double

Outliers

Outliers - observations beyond the whiskers, drawn as dots.

public IEnumerable<double> Outliers { get; init; }

Property Value

IEnumerable<double>

Q1

First quartile.

public double Q1 { get; init; }

Property Value

double

Q3

Third quartile.

public double Q3 { get; init; }

Property Value

double

X

Categorical X label.

public TX X { get; init; }

Property Value

TX

Methods

FromValues(TX, IEnumerable<double>, string?)

Compute a five-number summary from raw values using the inclusive quantile (linear interpolation) method, with whiskers clamped to the 1.5·IQR rule and outliers extracted beyond.

public static BOBChartBoxStat<TX> FromValues(TX x, IEnumerable<double> values, string? color = null)

Parameters

x TX
values IEnumerable<double>
color string

Returns

BOBChartBoxStat<TX>