Simulation - number of samples

4 views (last 30 days)
Steve
Steve on 27 Jul 2024
Edited: Torsten on 28 Jul 2024
MATLAB Helpcenter states:
When analyzing your FIS, you can configure the resolution of the output variable universe of discourse. To do so, set the Number of Samples parameter.
Is there a preset (optimum) value and how is this determined?

Accepted Answer

Torsten
Torsten on 27 Jul 2024
Edited: Torsten on 27 Jul 2024
Is there a preset (optimum) value and how is this determined?
As big as necessary and as small as possible. You will have to test it for several values.
  2 Comments
Steve
Steve on 28 Jul 2024
Can you please elaborate.
Torsten
Torsten on 28 Jul 2024
Edited: Torsten on 28 Jul 2024
Do you know Monte-Carlo simulation ? You need a minimum number of runs to establish a trustworthy value for probability, but you shouldn't use too many runs in order not to waste time and memory.
I'm not sure, but I think "Number of Samples" here is a similar parameter as the number of runs in Monto-Carlo Simulation. The more you choose, the better will be the resolution of the result, but the more computing time and memory will be necessary.
From the documentation:
When analyzing your FIS, you can configure the resolution of the output variable universe of discourse. To do so, set the Number of Samples parameter.
But before using a tool like the fuzzy logic toolbox, you should read its documentation to know about the theoretical background. Or do you know better what is meant by "Mamdani To Sugeno" or "Rule Inference" or "Control Surface" ?

Sign in to comment.

More Answers (0)

Categories

Find more on Fuzzy Logic Toolbox in Help Center and File Exchange

Products


Release

R2024a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!