pulsatrix
Loading...
Searching...
No Matches
pulsatrix::ConfidenceMeter Class Reference

Draws a filled bar whose fill length encodes confidence (position/length, never color alone – hc_information_visualization.md SS1/SS5: "confidence bar/meter... fastest to process"). The exact percentage is always rendered as text alongside the fill – never a color-only encoding (also satisfies WCAG: a colorblind user must be able to read the value without relying on hue). More...

#include <confidence_meter.hpp>

Static Public Member Functions

static void Draw (const char *label, float confidence_0_to_1)
 

Detailed Description

Draws a filled bar whose fill length encodes confidence (position/length, never color alone – hc_information_visualization.md SS1/SS5: "confidence bar/meter... fastest to process"). The exact percentage is always rendered as text alongside the fill – never a color-only encoding (also satisfies WCAG: a colorblind user must be able to read the value without relying on hue).

Member Function Documentation

◆ Draw()

static void pulsatrix::ConfidenceMeter::Draw ( const char *  label,
float  confidence_0_to_1 
)
static
Parameters
labelA short caption drawn above the meter (e.g. "Confidence").
confidence_0_to_1Confidence value; clamped to [0, 1] before display.

The documentation for this class was generated from the following file: