@@ -48,8 +48,9 @@ pp_addhdr('
4848);
4949
5050pp_def('acf',
51- Pars => 'x(t); [o]r(h)',
52- OtherPars => 'IV lag=>h',
51+ Pars => 'x(t); [o]r(h=CALC($COMP(lag) < 0 ? $SIZE(t) : $COMP(lag) + 1))',
52+ OtherPars => 'IV lag',
53+ OtherParsDefaults => { lag => -1 },
5354 GenericTypes => $F,
5455 Code => '
5556$GENERIC(x) s, s2, m, cov0, covh;
@@ -75,14 +76,6 @@ loop (h) %{
7576 }
7677%}
7778',
78- PMCode => pp_line_numbers(__LINE__, <<'EOF'),
79- sub PDL::acf {
80- my ($self, $h) = @_;
81- $h ||= $self->dim(0) - 1;
82- PDL::_acf_int($self, my $r = PDL->null, $h+1);
83- $r;
84- }
85- EOF
8679 Doc => <<'EOD',
8780=for ref
8881
10497);
10598
10699pp_def('acvf',
107- Pars => 'x(t); [o]v(h)',
108- OtherPars => 'IV lag=>h;',
100+ Pars => 'x(t); [o]v(h=CALC($COMP(lag) < 0 ? $SIZE(t) : $COMP(lag) + 1))',
101+ OtherPars => 'IV lag',
102+ OtherParsDefaults => { lag => -1 },
109103 GenericTypes => $F,
110104 Code => '
111105$GENERIC(x) s, s2, m, covh;
@@ -130,14 +124,6 @@ loop (h) %{
130124 }
131125%}
132126',
133- PMCode => pp_line_numbers(__LINE__, <<'EOF'),
134- sub PDL::acvf {
135- my ($self, $h) = @_;
136- $h ||= $self->dim(0) - 1;
137- PDL::_acvf_int($self, my $v = PDL->null, $h+1);
138- $v;
139- }
140- EOF
141127 Doc => <<'EOD',
142128=for ref
143129
0 commit comments