How do I fit a 3rd order polynomial Basis using fitrgp?
Hello,
I am trying to fit a 3rd order polynomial basis using fitgrp for my signal (1×1503). From the instructions, it looks like I would pass hfcn but don’t quite understand how to implement this for the 3rd order polynomial. How would I do this?
Here is code but at the moment it is only implementing a quadratic:
t_observed = (0:length(dodWavelet(:,1))-1)/10;
y_observed = dodWavelet(:,1);
gprMdl1 = fitrgp(t_observed’,y_observed,’Basis’,"pureQuadratic");
[ypred1] = predict(gprMdl1,t_observed’);Hello,
I am trying to fit a 3rd order polynomial basis using fitgrp for my signal (1×1503). From the instructions, it looks like I would pass hfcn but don’t quite understand how to implement this for the 3rd order polynomial. How would I do this?
Here is code but at the moment it is only implementing a quadratic:
t_observed = (0:length(dodWavelet(:,1))-1)/10;
y_observed = dodWavelet(:,1);
gprMdl1 = fitrgp(t_observed’,y_observed,’Basis’,"pureQuadratic");
[ypred1] = predict(gprMdl1,t_observed’); Hello,
I am trying to fit a 3rd order polynomial basis using fitgrp for my signal (1×1503). From the instructions, it looks like I would pass hfcn but don’t quite understand how to implement this for the 3rd order polynomial. How would I do this?
Here is code but at the moment it is only implementing a quadratic:
t_observed = (0:length(dodWavelet(:,1))-1)/10;
y_observed = dodWavelet(:,1);
gprMdl1 = fitrgp(t_observed’,y_observed,’Basis’,"pureQuadratic");
[ypred1] = predict(gprMdl1,t_observed’); functions, curve fitting, fitrgp MATLAB Answers — New Questions