Questions tagged [curvesmoothing]

17 questions
20
votes
5 answers

How to smoothen a plot in MATLAB?

I have some 9000 points that are plotted on a graph: [Full resolution] Actually, the plot is not as smooth as I wanted it to be. Is there some way I can smoothen the graph to a required degree? Or some form of thresholding so that I can selectively…
Lazer
  • 90,700
  • 113
  • 281
  • 364
9
votes
0 answers

How to have smooth sketch drawing on iPhone

Possible Duplicate: iPhone smooth sketch drawing algorithm I want to develop a iPhone app that support sketch drawing. I used some codes like this in touchesMoved: UIGraphicsBeginImageContext(self.view.frame.size); [drawImage.image…
oOEric
  • 1,069
  • 1
  • 10
  • 25
9
votes
6 answers

How to 'smooth' data and calculate line gradient?

I'm reading data from a device which measures distance. My sample rate is high so that I can measure large changes in distance (i.e. velocity) but this means that, when the velocity is low, the device delivers a number of measurements which are…
paul
  • 13,312
  • 23
  • 81
  • 144
4
votes
2 answers

Split numpy array into similar array based on its content

I have a 2D numpy array that represents the coordinates (x, y) of a curve, and I want to split that curve into parts of the same length, obtaining the coordinates of the division points. The most easy example is a line defined for two points, for…
efirvida
  • 4,592
  • 3
  • 42
  • 68
4
votes
3 answers

loess method fails on data frame due to multiple series not having enough data points

I have a data frame is like this: dput(xx) structure(list(TimeStamp = structure(c(15705, 15706), class = "Date"), Host = c("Host1", "Host2"), OS = structure(c(1L, 1L), .Label = "solaris", class = "factor"), ID = structure(c(1L, 1L), .Label…
user1471980
  • 10,127
  • 48
  • 136
  • 235
3
votes
1 answer

Convolve working with Interpolated Functions in Mathematica

I'm using Mathematica 7. I have an interpolated function, here's an example: pressures = WeatherData["Chicago", "Pressure", {2010, 8}] // DeleteCases[#, {_, _Missing}] & // Map[{AbsoluteTime[#[[1]]], #[[2]]} &, #] & //…
John
  • 5,735
  • 3
  • 46
  • 62
3
votes
2 answers

How to normalize sequence of numbers?

I am working user behavior project. Based on user interaction I have got some data. There is nice sequence which smoothly increases and decreases over the time. But there are little discrepancies, which are very bad. Please refer to graph below: …
Adorn
  • 1,403
  • 1
  • 23
  • 46
3
votes
3 answers

Android paint/canvas issue; drawing smooth curves

How do I get smooth curves instead of dots or circles, when I draw with my finger on the touch screen, in Android? I am using the following code- public class DrawView extends View implements OnTouchListener { private static final String TAG =…
Wrapper
  • 81
  • 1
  • 2
  • 3
2
votes
1 answer

HTML5 Canvas - Unexpected effect with Quadratic Curves

I've been working on a doodling app recently just for kicks. After trying many methods to draw smooth curves with the sample points given by the mouse, I've settled for something using Quadratic Curve. I must admit, my understanding of these curves…
Mathieu
  • 622
  • 1
  • 6
  • 12
2
votes
1 answer

How do I smooth data in maple?

In maple, what is the best way to smooth a data set, similar to one shown in the diagram, to get a regular(smooth) curve without affecting overall statistical properties? I am using Maple 16.
user6136611
0
votes
1 answer

Plot Smooth Curve in PyPlot with Large Y Values

I'm following the advice given in this question for the following data: import matplotlib.pyplot as plt from numpy import array, linspace from scipy.interpolate import spline xdata = array([25, 36, 49]) ydata = array([145247, 363726, 789055]) xnew…
Chris Redford
  • 16,982
  • 21
  • 89
  • 109
0
votes
1 answer

How can I use curves to bend Horizons smoothly?

I have been developing an endless runner game for some time and I wanted it try and make the environment to bend horizon randomly like subway surfaces I download this Horizon Bending asset from the store which works beautifully. In the asset I have…
Ashane Alvis
  • 770
  • 2
  • 18
  • 42
0
votes
1 answer

Sweep curve in SolidWorks

I am trying to sweep a continuous curve through a set of 3D points in SolidWorks. The sweep is meant to represent a tube, so a circular cross section which stays normal to the curve, is swept along the curve. The curve is made using the SolidWorks…
Lau
  • 1
  • 2
0
votes
2 answers

How to round off a curve (remove sharp corners) in matlab

Suppose there are two curves (described by two groups of data): curve 1 and curve 2. The two curves have more than two intersection points. A new curve 3 is obtained by keeping the upper part of the two curves. The problem is that there are several…
open0121
  • 105
  • 2
  • 15
0
votes
0 answers

How to increase the number of points on the fitted curve of a histgoram?

I have a histogram in MATLAB and would like to make a fit to it. I can do it using histfit but I kept getting a fitted curve of fixed size, which is 100. I mean there are always 100 points given on the curve. How do I change this? I want to increase…
Statsar
  • 153
  • 1
  • 1
  • 5
1
2