mroughan / LinePicking

Numerical code for geometric probability problems, in particular density functions for the "line picking" problem.
0 stars 1 forks source link

Problem 11 hypersphere pf does not integrate to 1 over support #20

Closed jonotuke closed 12 years ago

jonotuke commented 12 years ago

I was starting to write new R function to give numerical CDF. While trying it I integrated the hypersphere with parameters [5,5] over its support (0,10) and got 1.7. Is this that the function pdf is still being checked or is this news to you two?

library("LinePicking")

problem <- 11

para <- c(5,5)

integrate(LinePickingPDF,

  • lower=LinePickingSupport(problem=problem,para=para)[1],
  • upper=LinePickingSupport(problem=problem,p .... [TRUNCATED] 1.767146 with absolute error < 2.4e-05
lamestllama commented 12 years ago

Jono

Didn't you read my last commit ? I know it doesn't work.

I only started on the hyper-sphere last night. I am doing some refactoring atm. I will get back to it after that.

Eric

On 01/09/2012, at 4:54 PM, jonotuke wrote:

I was starting to write new R function to give numerical CDF. While trying it I integrated the hypersphere with parameters [5,5] over its support (0,10) and got 1.7. Is this that the function pdf is still being checked or is this news to you two?

library("LinePicking")

problem <- 11

para <- c(5,5)

integrate(LinePickingPDF,

lower=LinePickingSupport(problem=problem,para=para)[1], upper=LinePickingSupport(problem=problem,p .... [TRUNCATED] 1.767146 with absolute error < 2.4e-05 — Reply to this email directly or view it on GitHub.

mroughan commented 12 years ago

Some helpful hints on the hyper-sphere in the latex. Haven't had time to finish though.

Matt

On 01/09/12 18:12, Eric Parsonage wrote:

Jono

Didn't you read my last commit ? I know it doesn't work.

I only started on the hyper-sphere last night. I am doing some refactoring atm. I will get back to it after that.

Eric

On 01/09/2012, at 4:54 PM, jonotuke wrote:

I was starting to write new R function to give numerical CDF. While trying it I integrated the hypersphere with parameters [5,5] over its support (0,10) and got 1.7. Is this that the function pdf is still being checked or is this news to you two?

library("LinePicking")

problem <- 11

para <- c(5,5)

integrate(LinePickingPDF,

lower=LinePickingSupport(problem=problem,para=para)[1], upper=LinePickingSupport(problem=problem,p .... [TRUNCATED] 1.767146 with absolute error < 2.4e-05 — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/mroughan/LinePicking/issues/20#issuecomment-8211195.

lamestllama commented 12 years ago

I have done the pdf for the n-sphere and for the n-sphere using geodesic measurements but haven't done CDF mean or variance. a 2-sphere is what we would call a sphere ie it is embedded in 3 space.

They now integrate to 1 and since CDF is returning -1 it is the perfect time for jono to test his driver code.

lamestllama commented 12 years ago

Is this ok now?

jonotuke commented 12 years ago

Working fine now