« first day (3346 days earlier)      last day (1646 days later) » 

12:49 AM
any idea why my sin graph looks funny?
that is plotted in scilab
one one thing when x=90 i'd expect y=1 but it isn't quite there
 
 
11 hours later…
11:30 AM
Because it's working in radians, not degrees, naturally. sin of 90 radians is just below 0.9
You've gone through 57.3 cycles in your plot. Click my plot to see the details. I have stretched the horizontal axis
To convert degrees to radians multiply by pi/180
so 90 degrees is pi/2 radians, for example
 
11:50 AM
Hey @Glen!
Thanks for all the help and intriguing questions which made me lookup some good questions on the site and wikipedia etc.
It was for a assignment in a course of ML and I am not looking for deeper concepts in statistics.
 
 
5 hours later…
4:24 PM
@Glen_b thanks.. any idea how to get the x and y axis to intersect at x=y=0?
 
4:42 PM
@barlop The axes always intersect at the origin ;-). If you would like to depict them, consider issuing the post-plotting commands abline(h=0) and abline(v=0).
 
 
1 hour later…
6:38 PM
@whuber is that matlab? or octave? I have scilab and get "Undefined variable: abline"
 
7:14 PM
@barlop It's R (which is what @glen_b was using--I didn't notice you used something else). abline draws lines across the plot region. This is a basic operation in any graphics environment, so I'm sure you'll know how to do it.
 
 
2 hours later…
9:05 PM
Can anyone do a sanity-check for me rq? If a distribution gives a certain probability p(x) for each pixel x in an image, the probability of generating the whole image is the product of p(x) over every pixel in the image?
 

« first day (3346 days earlier)      last day (1646 days later) »