Beamchmark.Math (Beamchmark v1.4.2)

Copy Markdown View Source

The module contains helper math types and utility functions.

Summary

Types

Represents a percent difference.

Represents a percent.

Types

percent_diff_t()

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

percent_t()

@type percent_t() :: float()

Represents a percent.

Functions

percent_diff(base, new)

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