View Source Beamchmark.Math (Beamchmark v1.4.1)

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

@type 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.

@type percent_t() :: float()

Represents a percent.

Link to this section Functions

@spec percent_diff(number(), number()) :: percent_diff_t()