7,490 reputation
21669
bio website
location
age
visits member for 2 years, 7 months
seen 40 mins ago

A tribute to the ONE TRUE LOGO :)

logo


35m
comment Can you import/include a header file in Mathematica?
While writing a package is definetly the best way, you can just stick some definitions into an .m file and import that from all other notebooks.
Oct
16
comment Implementation of smoothing splines function
@Andy Well I read your answer in detail as I was trying to generate a 2D Bspline basis (in this Q). But I have not figured it out yet as I only get a symmetric fit...
Oct
16
comment Implementation of smoothing splines function
Hmm, where are n kmin and kmax used inside of SplineModel?
Oct
16
comment 2D smoothing spline interpolation
@RahulNarain Indeed, but the surface also goes through every point, which if there is noise is not desirable.
Oct
16
comment 2D smoothing spline interpolation
Thanks for the formatting @Mr.W
Oct
15
comment 2D smoothing spline interpolation
@ybeltukov Yes, GaussianFilter (or any other smoothing algorithm; perhaps a wavelet transform) + Spline interpolation would work as well.
Oct
15
comment 2D smoothing spline interpolation
Hi! Perhaps the question or the example code was a bit misleading. I need to obtain a differentiable interpolated and smoothed function from the data. In the test case it should be as close as possible to the original.
Oct
15
comment Help recreating a gif
The Last time I had to reduce gif size I used gifsicle lcdf.org/gifsicle
Oct
15
comment Help recreating a gif
Fixing the plotrange might give an even better animation. Still +1
Oct
1
comment Fitting a plane from a set of (x,y,z) values with uncertainties on 3 variables
The weights are for data points see here. As for posting code, we used to have a FAQ, but I can't seem to find it. @belisarius will know.
Oct
1
comment Fitting a plane from a set of (x,y,z) values with uncertainties on 3 variables
I guess you would like to use the measured errors as weights for LinearModelFit?
Aug
14
comment How to make a stereogram in Mathematica?
@SimonWoods Yes, I had to reduce the scaling factor before flatten to get better results (but less depth). Reducing the size of the bunny also helped.
Aug
13
comment How to make a stereogram in Mathematica?
I guess something like ImageAdjust@ Rasterize@ DensityPlot[(Sqrt[x^2 + y^2]) ( Cos[6 (Sqrt[x^2 + y^2])] - 0.5), {x, -3, 3}, {y, -3, 3}, Frame -> None, ColorFunction -> GrayLevel, PlotRange -> All] Could work instead of RadialGradientImage
Aug
13
comment How to make a stereogram in Mathematica?
For those of us not yet on V10, could you post a version without RadialGradientImage. I tried using depth = ImageCrop[ ImageAdjust@ Rasterize[ DensityPlot[Cos[x] + Cos[y], {x, 0, 4 Pi}, {y, 0, 4 Pi}, ColorFunction -> GrayLevel, Frame -> False], ImageSize -> {w nx, h ny}], {w nx, h ny}], But all I'm getting are Thread::tdlen: Objects of unequal length in, when running the shift part. (Still +1:)
Jul
15
comment How can I speed up this code?
Look into Compile.
Jun
16
comment Automatic Cuda/CPU code; Fast programme run
Hard to say. As for 1) blog.wolfram.com/2011/12/07/… or mathematica.stackexchange.com/questions/29349/…
Jun
9
comment Relative performance of the Julia language
What exactly is the question? This is a Q&A site after all...
Jun
8
comment Numerical simulation - getting slower the more data I have
Actually ConstantArray[{0.,0.,0.},len] would probably be better to prealocate
May
22
comment Whats Mathematica exactly is?
It's exactly a pattern rewriting engine:)
Apr
5
comment Organizing Code
But the answer is: yes, switch to packages and to Work Bench and your life will become easier.