The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Chart::Clicker::Data::Range

DESCRIPTION

Chart::Clicker::Data::Range implements a range of values.

SYNOPSIS

  use Chart::Clicker::Data::Range;

  my $range = new Chart::Clicker::Data::Range({
    lower => 1,
    upper => 10
  });

METHODS

Constructors

new

Creates a new, empty Series

lower

Set/Get the lower bound for this Range

upper

Set/Get the upper bound for this Range

span

Returns the span of this range, or UPPER - LOWER.

combine

Combine this range with the specified so that this range encompasses the values specified.

divvy
  my $values = $range->divvy(5);

Returns an arrayref of $N - 1 values equally spaced in the range so that it may be divided into $N pieces.

AUTHOR

Cory 'G' Watson <jheephat@cpan.org>

LICENSE

You can redistribute and/or modify this code under the same terms as Perl itself.