TimeOfMaximum.m
578 Bytes
%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