Commit 17f12dfd by Chiara Antonini

Upload new file

1 parent 52ac2cba
%Class computing the maximum point of a model variable curve. It extends
%the abstract class EvaluationFunction. The method compute_evalfunc takes in input
%an object TimeBehavior and returns in output the maximum point.
classdef TimeOfMaximum < EvaluationFunction
properties
end
methods
function EvalFuncValue=compute_ef(obj,obj_TimeBehavior)
[maximum, timeOfMaximum]=max(obj_TimeBehavior.values,[],2);
EvalFuncValue=obj_TimeBehavior.time(timeOfMaximum);
end
end
end
\ No newline at end of file
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!