Rahul
Reputation
12,303
Top tag
Next privilege 15,000 Rep.
Protect questions
 19h comment Do Any of the filter functions perform a LOESS or LOWESS filter? I don't think you understood my comment. What does that have to do with the difference between loess and lowess? Wikipedia and Mathworks say the difference is between linear and quadratic regression, R and the stats SE answer say the difference is between bivariate and multivariate data, but everyone agrees that both do a local weighting that falls off near the edge of the window, unlike your comment. Anyway, if you're looking for a locally weighted regression, my answer linked by MarcoB does do that. 21h comment Do Any of the filter functions perform a LOESS or LOWESS filter? It seems that everyone has a different idea of what the difference between loess and lowess is (and none of them agree with you): en.wikipedia.org/wiki/Local_regression, stat.ethz.ch/pipermail/bioconductor/2003-September/002337.html, mathworks.com/help/curvefit/lowess-smoothing.html, stats.stackexchange.com/q/161069 1d comment Programmatic immersion of 2D surfaces in 3D One possible approach: discrete the pre-glued 2D shape, treat the 3D embedding of the vertices as unknowns, and do something like this with the gluing treated as boundary conditions. Of course you don't necessarily want a minimal surface, so you'd have to minimize something like distortion instead of area. It would be a lot of work, to be sure. Feb 8 comment Image3D does not give the distinctive blurry look, version 10 Linux Just tested it, and yes, I get the blurry look on Linux with the gltest fix. Feb 8 comment Image3D does not give the distinctive blurry look, version 10 Linux I think Mathematica fails to detect graphics capabilities on Linux for some reason, lack of 3D antialiasing being another symptom. For me the solution that worked consistently (both for invoking mathematica from the command line and for starting it from a launcher) was to replace the gltest binary. I wonder if it'll fix your Image3D issues too (I haven't tried it out, but I see you also don't have anti-aliasing in your screenshots). Feb 8 comment What does GLTest do and what are the consequences of it failing In a pinch, echo -e '#!/bin/bash\necho "GLTest_OK"' > gltest; chmod a+x gltest will also do. Feb 8 comment Cluster a signal into areas of equal intensity Related: Weighted Voronoi Stippling Feb 4 comment Color a single contour from a ListContourPlot3D using values from a list You could also just use one of Mathematica's many nice built-in color schemes, like ColorData["StarryNightColors"][func[x, y, z]]. Feb 4 comment Color a single contour from a ListContourPlot3D using values from a list If you have Mathematica 10.2 or higher, you could also try ListSliceDensityPlot3D. Feb 3 comment How to make a contour shading like this You should also look into DensityPlot. Jan 29 comment Grayscale Morphology @SjoerdC.deVries: What you're thinking of, and what Mathematica apparently implements, is a special case of grayscale morphology with flat kernels. One can certainly use nonflat kernels in principle. Jan 21 comment Battery charge simulation not clipping properly as it iterates Also worth pointing out that Which is an expression that returns a value, so you could do batterylevel[[i]] = Which[mink < next < maxk, next, next <= mink, mink, next >= maxk, maxk] if you didn't know about Clip. Jan 20 comment Working with $X^2$, where $X$ has the uniform distribution in $[-b,b]$ The joint density will be hard to plot because its support $\{(x,x^2):-b\le x\le b\}$ is a one-dimensional subset of the plane. Jan 15 comment Need VectorPlot to ignore centre of region A circle of radius 0.2 is defined by x^2 + y^2 > 0.2^2, not x^2 + y^2 > 0.2. Jan 14 comment Contour plot of the imaginary portion of a function given the real part is positive In that case you have to think about what you want drawn in the region where the real part of both functions is positive. Jan 13 comment Contour plot of the imaginary portion of a function given the real part is positive ContourPlot[Im[x + I y - Log[x + I y]], {x, -6, 8}, {y, -6, 6}, RegionFunction -> Function[{x, y}, Re[x + I y - Log[x + I y]] > 0]] Jan 13 comment Change Contour Plot Overlap Ordering Apparently Mathematica always draws contours in increasing order of function value. The easiest solution I can think of is to plot the negative of the function, ContourPlot[-Sqrt[...], ..., Contours -> -list]. Jan 13 comment Contour plotting multiple curves Works for me: i.stack.imgur.com/eoARJ.png (Mathematica 10.1) Jan 13 comment 3D representation of a transcendental equation Try evaluating F*Exp[x] + x*y + Sqrt[F - y] /. sl /. {x -> -1, y -> -1}: neither "solution" satisfies the original equation. Jan 9 comment How to “inform” successive ContourPlot calculations? No, just change your definition of z to stop iterating sooner and use that in ContourPlot.