gtk/tests/variable.h
Matthias Clasen 0d03e570b0 tests: Use #pragma once consistently
Its the current coding style.
2023-12-20 10:25:41 -05:00

21 lines
633 B
C

#pragma once
typedef struct
{
double weight;
double sum;
double sum2;
} Variable;
#define VARIABLE_INIT { 0.0, 0.0, 0.0 }
void variable_init (Variable *variable);
void variable_add_weighted (Variable *variable,
double value,
double weight);
void variable_add (Variable *variable,
double value);
double variable_mean (Variable *variable);
double variable_standard_deviation (Variable *variable);
void variable_reset (Variable *variable);