Thanks a lot.I was learning how to use R in Sage recently. The norm function of R provides a normal distribution of two parameters mean and sd.So I would use the R interface in Sage instead. But I have problem ploting wuth R interface in Sage. I use the folliwing code to plot a histogram hut failed. ########### x=r([1,2,3,4]) x.hist() ########### I can find a fule named Rplot001.png in the current directory but it was empty. And if I use r.X11(),I can see correct graph.
kcrisman <kcris...@gmail.com>提到: > > >On Tuesday, June 24, 2014 7:02:44 PM UTC-4, 张秦川 wrote: > >I am so sorry that I forget about this as the 'gaussian'distribution in sage >only take one parameter sigma. I think 'normal' distribution should have two >parameters mu and sigma. > > >Correct, currently you have to "manually" shift it around - I think there are >some examples in the documentation or perhaps in the PREP tutorials. See >https://groups.google.com/forum/#!topic/sage-support/eD7xBdvd6YE among other >places where there are things about this. I agree this is suboptimal, but >also perhaps the authors of the GSL had a reason for not using mu? > >-- >You received this message because you are subscribed to the Google Groups >"sage-devel" group. >To unsubscribe from this group and stop receiving emails from it, send an >email to sage-devel+unsubscr...@googlegroups.com. >To post to this group, send email to sage-devel@googlegroups.com. >Visit this group at http://groups.google.com/group/sage-devel. >For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.