Finding peak in the Gaussian like function which Value is unknown.
Show older comments
Hi!
I want to find the peak in the Gaussian form of value.
But the difficulty is that the data is not given.
My pseudo code is below.
for i=1:n
Value = Somefunction(); %it takes long time.(ex:1min)
Values(i) = Value;
end
So, that code makes variable Values like gaussian(we know answer must be like gaussian).
But it takes too much time so I want to make the code like this.
while(1)
Value = Somefunction(); %it takes long time.(ex:1min)
if (the Value is the peak)
break;
end
end
Purpose is to reduce the iteration of the code.
Is that possible?
Thank your help.
Jae-Hee Park
Answers (1)
Sam Chak
on 22 Sep 2022
0 votes
You can also find some examples here:
1 Comment
Jae-Hee Park
on 22 Sep 2022
Categories
Find more on Descriptive Statistics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!