blob: 979a0794a984430af04c4708bc9e740762fd6fac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
function y= fractdiff(x,d)
//Compute the fractional differences (1-L)^d x where L denotes the lag-operator and d is greater than -1.
//Calling Sequence
// fractdiff (X, D)
//Description
//This is an Octave function.
//Compute the fractional differences (1-L)^d x where L denotes the lag-operator and d is greater than -1.
funcprot(0);
rhs= argn(2);
if(rhs < 2 | rhs >2)
error("Wrong number of input arguments");
end
select(rhs)
case 2 then
y= callOctave("fractdiff",x,d);
end
endfunction
|