Questions tagged [smoothing]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
82 views

Calculate the mean value from point inside a 2D contour

I saw a question about creating contour lines over a smoothdensityhistogram plot. It really help me to create this kind of graphs. I want to ask if is possible to extract only the points inside a ...
Renato QE's user avatar
8 votes
1 answer
310 views

How can I prevent conversion of a SparseArray to a DenseArray?

The Problem I'm trying to implement an efficient Whitker-Eliers smoother in Mathematica. In Matlab, this is a few lines of code (taken from the SI of the above paper): ...
BesselFunct's user avatar
1 vote
0 answers
55 views

Problem with dividing two functions

Here is my code ...
user280016's user avatar
1 vote
2 answers
109 views

Smooth out numerical fluctuation at known point

I have the following function ...
Frotaur's user avatar
  • 285
1 vote
1 answer
138 views

Why does the derivative of an InterpolatingFunction fluctuate so much?

...
yode's user avatar
  • 26.3k
0 votes
0 answers
23 views

Listdensityplot sort of smooths the data when I don't want it [duplicate]

I tried plotting a densityplot and it gives me an image what I expected. like this but after a split second it kind of updates itself to why is its dynamically smoothing itself? I want the first one....
Rupesh's user avatar
  • 877
2 votes
1 answer
144 views

Moving average over a dataset

I have this data set in .csv and I imported them to mathematica to analyze them using Import function. Now here I have only shown a part of the dataset just to give an example of how it looks in Excel....
Indeterminate's user avatar
1 vote
2 answers
160 views

Plot two smooth curves from a set of data with interlaced points

I have a set of data which was obtained from numerical calculation. The plot of the original data is as follows (the data is 26Kb only). ...
lxy's user avatar
  • 165
2 votes
1 answer
213 views

How can I smooth sharp edges in ListDensityPlot

I have this data and there are some zigzag behaviors around the sharp edges ...
MMA13's user avatar
  • 4,265
1 vote
1 answer
305 views

2D kernel density estimation (SmoothKernelDistribution) with bandwidth estimation: what are the values that Mathematica chooses?

Mathematica has built in bandwidth estimation including the rules Scott, SheatherJones and ...
Davi's user avatar
  • 651
9 votes
3 answers
490 views

Smoother boundaries between components of segmented image

I'd like to use boundaries between components of a segmented image to create a mesh for finite elements, as described in Mesh for Images for three materials and meshes with multiple regions from 2D ...
tad's user avatar
  • 1,700
0 votes
0 answers
58 views

How to calculate smoothing constant alpha in ExponentialMovingAverage?

I'm trying to use ExponentialMovingAverage on a time series, but I'm not sure how I'm supposed to calculate the smoothing constant. I read that the appropriate ...
DADVA's user avatar
  • 1
5 votes
0 answers
385 views

Histogram (automatic binning)

There are different methods for choosing widths of bins for a histogram, like Freedman-Diaconis rule. In Mathematica, without choosing a specific method, with the command ...
user avatar
0 votes
2 answers
153 views

How to smoothen a contour plot?

I want to smoothen the following contour. ...
surujjd's user avatar
  • 83
1 vote
2 answers
497 views

How to smooth data

I have a list of the form dataTosmooth={{a,b,c},....} where a and b are coordinates and c is the data to be smoothed. In other words, smooth dataTosmooth[[All,3]] along dataTosmooth[[All,{1,2}]]. What ...
Tom6639's user avatar
  • 199
3 votes
2 answers
366 views

Approximate the piecewise constant with a smooth function

Let us first define a two regions as follow : inner=1;outer=2; reg1 = Disk[{0, 0}, inner]; reg2 = Annulus[{0, 0}, {inner, outer}]; glass=1.5;air=1; Now let's say I ...
krishnendu maji's user avatar
5 votes
2 answers
2k views

Smooth Boxcar function (Rectangle Pulse function)

There are some answers on how to get a smooth squarewave function. But I would like to have a smooth boxcar function or rectangle function with 2 different widths.: ...
Nam Nguyen's user avatar
  • 1,751
2 votes
1 answer
350 views

Smoothing an irregular TimeSeries and calculate it's Derivative

I've a data set consisting of two columns, the first column is a date and the second is a numeric cumulative amount. I tried to create a time series, resample it and smooth but I couldn't manage to ...
Revious's user avatar
  • 540
1 vote
1 answer
395 views

Smoothing a function after interpolation + trying to fit 3D data into model without accurate prior knowledge

I have a physical problem simulation that generates this data set in the two cylindrical coordinates $(r,z)$ (doesn't include $\phi$ dependence). The data set (see .wdx file) is in the flattened form $...
user135626's user avatar
1 vote
1 answer
179 views

How to remove spikes from boundaries in ListContourPlot?

I have a table with three columns, that is of the form {{x1,y1,z1},{x2,y2,z2}....}. I have done a ListContourPlot with it. But the contour boundaries have spikes in it. What might be the reason and ...
surujjd's user avatar
  • 83
2 votes
2 answers
130 views

Removing a crease artifact in a surface of revolution SphericalPlot

Consider the surface ...
lineage's user avatar
  • 1,114
1 vote
1 answer
159 views

Smoothing a dataset

I have a dataset, named data as follows: data = Transpose[{Table[i, {i, 1, 10, 0.1}], N[Table[Log[i] + RandomReal[0.5], {i, 1, 10, 0.1}]]}]; I need to ...
P Pyne's user avatar
  • 441
17 votes
3 answers
1k views

Rounding an Irregular Polygon

Consider a random irregular convex polygon, for example, the 6-side polygon I want to define a function that, given a certain parameter r (roundness), rounds each ...
sam wolfe's user avatar
  • 4,179
3 votes
1 answer
162 views

Code or algorithm for the built-in function SavitzkyGolayMatrix

Does anyone know the algorithm that the function SavitzkyGolayMatrix implements? Unusually, the help page does not spell out an explicit formula or the algorithm ...
ulvi's user avatar
  • 1,808
2 votes
1 answer
435 views

Calculate and plot mean values of pairs of data points

I have a list of data points where there can be multiple y values for a given x value, e.g., {{0, 4}, {1, 2}, {1, 3}, {2, 3}}. I would like to Take the mean of the y values for each x value. Get a ...
user2253054's user avatar
1 vote
1 answer
142 views

Moving map with non-overlapping window

How can I apply a function to a list with non-overlapping window. E.g. $data = \{x_1, x_2, ...., x_n\}$ and we apply f with window size 2 to get $\{f(x_1,x_2), f(x_3, x_4), ...., f(x_{n-1}. x_n)\}$. ...
Al Guy's user avatar
  • 1,580
4 votes
0 answers
148 views

BSpline vs natural spline [closed]

The BSpline in mathematica is defined mathematically here. These BSplines constitute basis for any Spline. But how do I define natural splines in mathematica, i.e. splines that are linear left of the ...
Al Guy's user avatar
  • 1,580
0 votes
0 answers
43 views

RegionPlot with FindMaximum

I don't understand why each time I'm launching this computation Mathematica buggs and I get a message from Windows that the Kernel stopped working... I'm trying to get a map of where the value of ...
J.A's user avatar
  • 1,245
13 votes
2 answers
1k views

Catmull-Clark and Doo-Sabin Subdivision Implementations

I want to work on subdivision surfaces. Unfortunately, I don’t have any source code to start with. I need some Mathematica codes for applying Catmull-Clark and Doo-Sabin methods. I would like to ...
Rong Jin's user avatar
  • 133
2 votes
1 answer
305 views

How to make the ListContourPlot3D smooth and closed?

I am struggling with making my plot in ListContourPlot3D smooth and closed. I have seen so many posts regarding the same issue but in other functions, the solution of which can not be applied to ...
KratosMath's user avatar
  • 1,243
0 votes
3 answers
275 views

Smoothing random data with MovingAverage

If I have this kind of data: ...
lio's user avatar
  • 2,356
3 votes
1 answer
519 views

Changing the averaging window dynamically in a moving average

I have some temperature decay data (2k points) that is very noisy for large time values. I don't want to do much or any smoothing to the data early on, but would like a large window to average over ...
2close2see's user avatar
1 vote
0 answers
45 views

Smoothing the surface created from a set of points

I have a question about "smoothing" the surface created on the basis of a set of points. I would like to get an effect similar to that from the Documentation Center. enter link description here The ...
Arek's user avatar
  • 67
0 votes
0 answers
65 views

Smoothen curve in ListDensityPlot [duplicate]

I have a list of points of dimensions (150,101) and I am plotting them in a ListDensityPlot. I am happy with the command and how the data is represented, but I ...
Alex Aiv.'s user avatar
5 votes
4 answers
1k views

Smoothing noisy data

I have this data shown in picture 1 below and I want to filter it. I tried some filters but I couldn't get good results. seems that I didn't choose the best parameters for it. I want to smooth my ...
Mat-laut's user avatar
6 votes
3 answers
521 views

How to find the boundary of a region from a dataset

I have a dataset which supposed to show some regions. For example ...
Sumit's user avatar
  • 15.9k
30 votes
2 answers
2k views

Smoothing 3D contours as post processing

Context Following this question (and great answer!), It would be nice to have a function which also smooths 3D contours plots once they have been done. There are various solutions which involve ...
chris's user avatar
  • 22.6k
20 votes
3 answers
921 views

Generic contour smoothing with shading

Context It would be nice to have a function which smooths contours plots once they have been done. There are various solutions which involve smoothing the data before making the contours, but here I ...
chris's user avatar
  • 22.6k
2 votes
1 answer
180 views

Smoothing EdgeDetect - image processing

I have to make a program that analyzes the image of saw tooth and later find the function that can describe it (or just part of it). Now I have a problem with smoothing the edges detected with ...
SMatko's user avatar
  • 21
1 vote
0 answers
168 views

Smoothing 2-d Functions [closed]

I have a large array of triples (x_i,y_i,f(x_i,y_i)) The the values x_i and y_i are equidistant variables and the function values f(x_i,y_i) are results of a Monte Carlo calculation which contain ...
user299563's user avatar
1 vote
2 answers
2k views

Interpolating noisy data

My data looks like this: https://pastebin.com/n59CTB3L Or if displayed in log chart: I want to create an interpolation of the data that would remove most of the noise. What are some good ways to ...
Arsen Zahray's user avatar
36 votes
1 answer
2k views

How to perform Loop subdivision on a triangle mesh with Mathematica?

(Cross posted on Wolfram Community) Every now and then, the question pops up how a given geometric mesh (e.g. a MeshRegion) can be refined to produce a (i) finer ...
Henrik Schumacher's user avatar
6 votes
1 answer
3k views

How to calculate the first derivative from experimental data

I have a set of experimental data and need to calculate the first derivative. What is the easiest way to do this? Many thanks in advance
Nannoul's user avatar
  • 61
5 votes
2 answers
156 views

Reshape interpolated data

I want to reshape/smooth the following data: ...
JeRut's user avatar
  • 98
13 votes
3 answers
875 views

Improve the mesh smoothing procedure

My question is inspired by this answer about meshing with quadrilateral elements. The following functions are my (naive) try of implementing the Laplacian smoothing. I find interior nodes in the mesh ...
Pinti's user avatar
  • 6,483
2 votes
0 answers
172 views

DistributionChart and kernel smoothing: preventing negative numbers

I am visualising rather scarce data about size distribution of certain objects (here - oil basin areas on continents, to be specific). There is no raw data, but some already processed quantities, for ...
astrsk's user avatar
  • 93
1 vote
1 answer
1k views

Interpolating or smoothing list plot

I am currently trying to interpret my FTIR data. But due to a lot of background noise, my spectrum is quite spiky and fluctuating at some points. I want to try to smoothen my function to make the ...
Soof_fie's user avatar
  • 223
10 votes
2 answers
1k views

How to get a smooth ridge from a binary image

I always have this demand,but Mathematica cannot implement this perfectly for me.For example,I have such binary image ...
yode's user avatar
  • 26.3k
3 votes
3 answers
211 views

How to make logic for detecting "abnormality point" and remove it from data points

Here are my data points: ...
SelfA's user avatar
  • 215
2 votes
2 answers
269 views

Smoothing a cusp in plotted data

Here are my data points: ...
SelfA's user avatar
  • 215