Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

/var/sites/help-site.com/auto/tmp/CPAN/9677/Chart-Clicker-1.4.2/lib/Chart/Clicker/Data/Range.pm

/var/sites/help-site.com/auto/tmp/CPAN/9677/Chart-Clicker-1.4.2/lib/Chart/Clicker/Data/Range.pm


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

min
Set/Get the minimum value allowed for this Range. This value should only be set if you want to EXPLICITLY set the lower value.

upper
Set/Get the upper bound for this Range

max
Set/Get the maximum value allowed for this Range. This value should only be set if you want to EXPLICITLY set the upper value.

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. For example, adding a range with an upper-lower of 1-10 with one of 5-20 will result in a combined range of 1-20.

add
Adds the specified range to this one. The lower is reduced to that of the provided one if it is lower, and the upper is ADDED to this range's upper.

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.

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy