Skip to content
Prev 242406 / 398500 Next

density at particular values

On Nov 20, 2010, at 9:34 PM, Shant Ch wrote:

            
I am not sure what the number six (6) represents in the two palces it  
occurs:

 > str(density(x))
List of 7
  $ x        : num [1:512] -59.2 -59 -58.8 -58.5 -58.3 ...
  $ y        : num [1:512] 3.30e-05 5.27e-05 8.19e-05 1.24e-04  
1.82e-04 ...
  $ bw       : num 1.37
  $ n        : int 100
  $ call     : language density.default(x = x)
  $ data.name: chr "x"
  $ has.na   : logi FALSE
  - attr(*, "class")= chr "density"

Perhaps you want to look at:

?approxfun

It would let you interpolate at points that are not part of the set  
density(x)$x

__
David.
David Winsemius, MD
West Hartford, CT