Fixed another error in GL derivative
This commit is contained in:
parent
c2e265b407
commit
1c71badbef
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ elseif regType == "GL" # Grünwald-Letnikov fractional derivative regulariztion
|
|||
# regParam1 is alpha (order of fractional derivative)
|
||||
C = ones(p)*1.0;
|
||||
for k in 2:p
|
||||
C[k] = (-1)^(k-1) * (1-(regParam1+1)/k) * C[k-1];
|
||||
C[k] = (1-(regParam1+1)/(k-1)) * C[k-1];
|
||||
end
|
||||
|
||||
regMat = zeros(p,p);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue