Calculate the x when f(x) reaches its minimum
1
0
Entering edit mode
Zhan Tianyu ▴ 40
@zhan-tianyu-6632
Last seen 10.3 years ago
Hi all, I have a question concerning using R to calculate "x" when "f(x)" reaches its minimum, for example x is between -5 and 5. A simple and naive method would be divide (-5,5) into 10000 pieces, and then calculate the corresponding values of f(x)'s. Then the order of those f(x)'s would give me the answer of "x". However, this method is kind of slow and inaccurate. I would really appreciate if someone could give me some suggestions of improving it, or tell me a better method. Thank you. Best regards, Tianyu Zhan [[alternative HTML version deleted]]
• 751 views
ADD COMMENT
0
Entering edit mode
Tim Triche ★ 4.2k
@tim-triche-3561
Last seen 4.2 years ago
United States
?optim Statistics is the grammar of science. Karl Pearson <http: en.wikipedia.org="" wiki="" the_grammar_of_science=""> On Sat, Jul 19, 2014 at 9:04 PM, Zhan Tianyu <sewen67@gmail.com> wrote: > Hi all, > > I have a question concerning using R to calculate "x" when "f(x)" > reaches its minimum, for example x is between -5 and 5. A simple and naive > method would be divide (-5,5) into 10000 pieces, and then calculate the > corresponding values of f(x)'s. Then the order of those f(x)'s would give > me the answer of "x". However, this method is kind of slow and inaccurate. > I would really appreciate if someone could give me some suggestions of > improving it, or tell me a better method. Thank you. > > Best regards, > Tianyu Zhan > > [[alternative HTML version deleted]] > > _______________________________________________ > Bioconductor mailing list > Bioconductor@r-project.org > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: > http://news.gmane.org/gmane.science.biology.informatics.conductor > [[alternative HTML version deleted]]
ADD COMMENT

Login before adding your answer.

Traffic: 801 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6