The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Data::Decimate - A module that allows to decimate a data feed.

SYNOPSIS

  use Data::Decimate qw(decimate);

  my @data = (
        {epoch  => 1479203101,
        #...
        },
        {epoch  => 1479203102,
        #...
        },
        {epoch  => 1479203103,
        #...
        },
        #...
        {epoch  => 1479203114,
        #...
        },
        {epoch  => 1479203117,
        #...
        },
        {epoch  => 1479203118,
        #...
        },
        #...
  );

  my $output = Data::Decimate::decimate(15, \@data);

  #epoch=1479203114 , decimate_epoch=1479203115
  print $output->[0]->{epoch};
  print $output->[0]->{decimate_epoch};

DESCRIPTION

A module that allows you to resample a data feed

SUBROUTINES/METHODS

decimate

Decimate a given data based on sampling frequency.

AUTHOR

Binary.com, <support at binary.com>

BUGS

Please report any bugs or feature requests to bug-data-resample at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Data-Decimate. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Data::Decimate

You can also look for information at:

ACKNOWLEDGEMENTS