View Source Beamchmark.Math (Beamchmark v1.4.0)

The module contains helper math types and utility functions.

Link to this section Summary

Types

Represents a percent difference.

Represents a percent.

Link to this section Types

Specs

percent_diff_t() :: percent_t() | :nan

Represents a percent difference.

This can be either percent_t/0 or :nan when trying to compare value with 0.

Specs

percent_t() :: float()

Represents a percent.

Link to this section Functions

Specs

percent_diff(number(), number()) :: percent_diff_t()