Skip to main content

Table of Contents

FloatTracker Objects

class FloatTracker()

Track statistics for floating point numbers

Parameters

min : float Current min value max : float Current max value sum : float Sum of the numbers count : int Total count of numbers

update

 | update(value: float)

Add a number to the tracking statistics

add_integers

 | add_integers(tracker)

Copy data from a IntTracker into this object, overwriting the current values.

Parameters

tracker : IntTracker

mean

 | mean()

Calculate the current mean

merge

 | merge(other)

Merge this tracker with another.

Parameters

other : FloatTracker The other float tracker

Returns

merged : FloatTracker A new float tracker

to_protobuf

 | to_protobuf()

Return the object serialized as a protobuf message

Returns

message : DoublesMessage

from_protobuf

 | @staticmethod
| from_protobuf(message)

Load from a protobuf message

Returns

number_tracker : FloatTracker

Prefooter Illustration Mobile
Run AI With Certainty
Get started for free
Prefooter Illustration