-1
$\begingroup$

I use smooth function in matlab, in this function there is the smf (smooth factor) parameter that get different values. In different applications, this parameter has different value that results optimum output. How I can find optimum smf value?

$\endgroup$
  • $\begingroup$ I am not sure of the smooth function/matlab version you are using. Could you link to the related documentation page? $\endgroup$ – Laurent Duval Jan 2 at 12:27
  • $\begingroup$ mathworks.com/help/curvefit/smooth.html $\endgroup$ – Velma Benedict Jan 2 at 13:03
  • $\begingroup$ @VelmaBenedict there's no "smooth factor" or parameter called "smf" in the documentation you've linked to... $\endgroup$ – Marcus Müller Jan 2 at 13:12
  • $\begingroup$ @ Marcus Müller Here, its name is span. $\endgroup$ – Velma Benedict Jan 2 at 13:53
  • $\begingroup$ @VelmaBenedict OK, but that is documented as "sets span of selected method"; so, obviously, depends on which method you select. These are then described in detail further down. Please explain what of the documentation you have you do not understand instead of hoping we'll write the same documentation again for you. $\endgroup$ – Marcus Müller Jan 13 at 17:41
1
$\begingroup$

In different applications, this parameter has different value that results optimum output. How I can find optimum smf value?

What do the docs say the smooth function does? Write that down mathematically.

As for any mathematical problem: you'll set up a formula for the "error" you're making (or a formula for the "goodness" you're achieving), and then you find the minimum (or maximum) of that formula.

Sorry that I can't be more specific, but what that error function is completely depends on your application.

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.