Skip to content

Comment does not match function signature (Velocity_RW_with_Mean) #7

@ufechner7

Description

@ufechner7

The comment mentions the parameters iT and t, but the function header does not show these parameters.
Either the code of the function or the comment must be wrong.
Also unclear: What is WindVel.MeanPull supposed to be?

You can find this function in the folder Velocity_RW_with_Mean.

function Vel = getWindSpeedT(WindVelNow,WindVel)
% %GETWINDSPEEDT returns the wind speed at the respective turbine(s)
% % ======================================================================= %
% % Random walk model with mean implementation
% % ======= Input ======
% % WindVel.Init    = Mean velocity
% % WindVel.CholSig = Tn x Tn = col(Covariance Matrix)
% % WindVelNow      = Current value
% % iT              = Index/Indeces of the turbines
% % t               = time of request
% % ======================================================================= %
% weigthedRandN = randn(1,length(WindVelNow));
% Vel = WindVelNow + (weigthedRandN*WindVel.CholSig)' + ...
%     WindVel.MeanPull*(WindVel.Init - WindVelNow);
% end

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions