Questions tagged [smoothing]

Smoothing related to statistical programing solutions in which a signal is filtered to create an approximating function that attempts to capture important patterns in the data, while leaving out noise, or for visual clarity to see general trends.

In scientific software for statistical computing and graphics, function smooth.spline implements a smoothing spline; function ksmooth implements a kernel estimator; function loess implements LOESS.

1479 questions
9
votes
2 answers

Smooth edges of non-rectangular form in .NET

I've created a form with rounded corners using Form.Region. It works, but unfortunately the rounding appears rough. Are there any tricks for smoothing such shaped form corners? I know many applications support this, just not sure how to make it in…
SharpAffair
  • 5,558
  • 13
  • 78
  • 158
9
votes
1 answer

R : stat_smooth groups (x axis)

I have a Database, and want to show a figure using stat_smooth. I can show the avg_time vs Scored_Probabilities figure, which looks like this: c <- ggplot(dataset1, aes(x=Avg.time, y=Scored.Probabilities)) c + stat_smooth() But when changing…
Jeffery Chen
  • 323
  • 2
  • 4
  • 13
9
votes
1 answer

Is there a way to plot a curve of best fit without function? Python

I need to plot a smooth curve of best fit but all the methods I've found use scipy.optimize.curve_fit(), and this requires knowing the function relating x and y. Is there a simpler way to do it for basic scatter plots? What Im trying to get the…
harpreet bains
  • 93
  • 1
  • 1
  • 3
9
votes
1 answer

Less smoothed line in ggplot2, alternatives to geom_smooth?

Using the following data: > str(attribute) 'data.frame': 431 obs. of 2 variables: $ pos: int 1 2 3 4 5 6 7 8 9 10 ... $ att: num 0.652 0.733 0.815 1.079 0.885 ... *[between 0 and 3] and: ggplot(attribute, aes(x=pos, y=att)) + geom_line() +…
PGreen
  • 3,239
  • 3
  • 24
  • 29
9
votes
3 answers

Smoothing a 2-D figure

I have a number of vaguely rectangular 2D figures that need to be smoothed. A simplified example: fig, ax1 = plt.subplots(1,1, figsize=(3,3)) xs1 = [-0.25, -0.625, -0.125, -1.25, -1.125, -1.25, 0.875, 1.0, 1.0, 0.5, 1.0, 0.625, -0.25] ys1 = [1.25,…
iayork
  • 6,420
  • 8
  • 44
  • 49
9
votes
3 answers

Smooth rotation transition CSS3?

I am rotating my images when hovered and I want the transition to be smooth so this is what I tried:
thumb
2339870
  • 1,317
  • 3
  • 15
  • 23
9
votes
2 answers

How to visualize a nonlinear relationship in a scatter plot

I want to visually explore the relationship between two variables. The functional form of the relationship is not visible in dense scatter plots like this: How can I add a lowess smooth to the scatter plot in Python? Or do you have any other…
tobip
  • 465
  • 1
  • 5
  • 18
9
votes
2 answers

why is only 60 fps really smooth in cocos2d?

It has probably been asked before, but I can't find it anywhere... In videoland, 24 fps and anything above is smooth. Cocos2d seems to be smooth only when its 60 fps or maybe a bit less. Anything between 30 and 50 is certainly not smooth, the fps…
yurki
  • 95
  • 1
  • 5
8
votes
2 answers

R/ggplot2: smooth on entire dataset while enforcing a ylim cap

UPDATE: I found the answer... included it below. I have a dataset that contains the following variables and similar values: COBSDATE, CITY, RESPONSE_TIME 2011-11-23 A 1.1 2011-11-23 A 1.5 2011-11-23 A 1.2 2011-11-23 B …
BenH
  • 167
  • 3
  • 10
8
votes
3 answers

Drawing smooth lines with canvas

So far none of the threads here on smooth lines are correct. how to draw smooth curve through N points using javascript HTML5 canvas? Smooth user drawn lines in canvas Both result in jagged lines. By smooth I mean using the x,y points as control…
Sean Clark
  • 1,436
  • 1
  • 17
  • 31
8
votes
6 answers

Smooth transition between two (class) and (class):hover

Is there a script/way, that makes normal CSS :hover more smooth? Idea would be, that you got two classes maybe with gradient backgrounds, and the script would smoothly swap the classes. So the gradients would look like your pressing a button. Should…
Kalle H. Väravas
  • 3,579
  • 4
  • 30
  • 47
8
votes
2 answers

Savitzky-Golay filtering giving incorrect derivative in 1D

I have an x and y dataset, with x as the independent variable and y as the dependent variable. y=2x I add some noise to 'y' and apply the scipy Savitzky Golay filter. When I attempt to get the first derivative of y, I get the derivative as…
Ankit Bansal
  • 317
  • 4
  • 14
8
votes
4 answers

r calculating rolling average with window based on value (not number of rows or date/time variable)

I'm quite new to all the packages meant for calculating rolling averages in R and I hope you can show me in the right direction. I have the following data as an example: ms <- c(300, 300, 300, 301, 303, 305, 305, 306, 308, 310, 310, 311, 312, …
RmyjuloR
  • 369
  • 1
  • 4
  • 13
8
votes
3 answers

How to make a smooth rotation of a 3D plot in MATLAB?

If I try to rotate camera around my current figure with plot3 using while true; camorbit(0.9,-0.1); drawnow; end then the rotation periodically hangs for a while (example) even on 8-core MacPro. Can I make it smooth? EDIT1: While there is no…
Andrei Fokau
  • 225
  • 1
  • 4
  • 11
8
votes
2 answers

How to make CSS gradient look smooth?

I have a black background and want to add a block inside with simple CSS gradient from transparent to 0.7 white: linear-gradient(to right, hsla(0, 0%, 100%, 0), hsla(0, 0%, 100%, 0.76) 14%, hsla(0, 0%, 100%, 0.76) ) But this looks…