Excellent. Thanks again.
On Tuesday, March 24, 2015 at 4:48:44 PM UTC-4, Simon Byrne wrote: > > Ah. So FloatRange actually has 4 fields: you can see their names by > calling names(range) > start > step > len > divisor > > if you save all those, and pass them back to the constructor, > > FloatRange(start,step,len,divisor) > > you should be in business. > > On Tuesday, 24 March 2015 21:40:41 UTC+1, Christopher Fisher wrote: >> >> Thank you. That part works. I saved the range and density to excel files >> and loaded them back into Julia. I realized that there does not appear to >> be a way to convert an Array to a Float range using convert(). As a >> workaround, I tried saving the FloatRange variable "range" as the min, step >> and max (e.g. range[1], range[2]-range[1], range[end]) and reading those >> values in to the colon() function instead. However, there was some >> rounding error in computing the step from the difference. Consequentially, >> the resulting FloatRange variable was one element shorter than the original >> FloatRange variable. Any ideas would be greatly appreciated. >> >> >>> After you've created your UnivariateKDE object: >>> >>> k = kde(X) >>> >>> you can access the fields via . >>> >>> range = k.x >>> density = k.density >>> >>> To recreate an object, just call the constructor: >>> >>> k = UnivariateKDE(range, density) >>> >>> -Simon >>> >>>
