3
class LASTResampler extends RESAMPLER {
6
function __construct(REQUEST $req = NULL, $opts = false, $sampling = false) {
7
parent::__construct($req, $opts, $sampling);
9
$this->max_gap = $this->GetOption('max_gap', 0);
12
function Resample($data, $flags = 0) {
13
$nchan = $this->GetNumberOfChannels($data);
16
'info' => $data['info'],
20
$keys = array_keys($data['data']);
21
$src = &$data['data'];
24
for ($i = 0; $i < sizeof($keys); $i++) {
27
for ($ch = 0; $ch < $nchan; $ch++) {
28
for ($j = $i; $j >=0; $j--) {
31
if (($this->max_gap)&&(($outkey - $key) > $this->max_gap)) {
36
if (is_numeric($src[$key][$ch])) {
37
$vout[$ch] = $src[$key][$ch];
44
if (sizeof($vout) == $nchan) {
45
$out['data'][$outkey] = $vout;
51
$out['info']['incomplete'] = $filtered;
b'\\ No newline at end of file'