class

DSP::Scale

Inherits Reference < Object

Provide methods for generating sequences that scale linearly or exponentially.

Class methods

exponential(range, n_points)

@param [Range] range The start and end values the set should include. @param [Fixnum] n_points The number of points to create for the sequence, including the start and end points. @raise [ArgumentError] if n_points is < 2.

Source
linear(range, n_points)

Produce a sequence of values that progresses in a linear fashion. @param [Range] range The start and end values the set should include. @param [Fixnum] n_points The number of points to create for the sequence, including the start and end points. @raise [ArgumentError] if n_points is < 2.

Source