Skip to main content

CorePlotting::SeriesDataCache

CorePlotting::SeriesDataCache

Cached statistical data for a series. More…

#include <SeriesDataCache.hpp>

Public Functions

Name
SeriesDataCache() =default
Construct with invalid cache.
void invalidate()
Invalidate all cached values.
bool is_valid() const
Check if cache is fully valid.

Public Attributes

Name
float cached_std_dev
Cached standard deviation (may be overridden by group scaling).
bool std_dev_cache_valid
Is std_dev cache valid?
float cached_mean
Cached mean value.
bool mean_cache_valid
Is mean cache valid?
float intrinsic_scale
Computed normalization scale (e.g., 1/(3*std_dev)).
float individual_std_dev
Per-series std_dev (never overridden by group scaling).

Detailed Description

struct CorePlotting::SeriesDataCache;

Cached statistical data for a series.

Note: All members are mutable to allow lazy computation even when accessed through const references.

Contains computed values that are expensive to calculate (e.g., mean, standard deviation) but needed for display calculations (e.g., intrinsic scaling). These are mutable caches that get invalidated when the underlying data changes.

Separated from style configuration and layout results per the CorePlotting architecture (see DESIGN.md, ROADMAP.md Phase 0).

Public Functions Documentation

function SeriesDataCache

SeriesDataCache() =default

Construct with invalid cache.

function invalidate

inline void invalidate()

Invalidate all cached values.

Call this when the underlying data changes.

function is_valid

inline bool is_valid() const

Check if cache is fully valid.

Return: true if all cached values are valid

Public Attributes Documentation

variable cached_std_dev

float cached_std_dev {0.0f};

Cached standard deviation (may be overridden by group scaling).

variable std_dev_cache_valid

bool std_dev_cache_valid {false};

Is std_dev cache valid?

variable cached_mean

float cached_mean {0.0f};

Cached mean value.

variable mean_cache_valid

bool mean_cache_valid {false};

Is mean cache valid?

variable intrinsic_scale

float intrinsic_scale {1.0f};

Computed normalization scale (e.g., 1/(3*std_dev)).

variable individual_std_dev

float individual_std_dev {0.0f};

Per-series std_dev (never overridden by group scaling).


Updated on 2026-11-13 at 20:25:42 +0000