This is a file from the Wikimedia Commons

File:Biweight.svg

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Original file(SVG file, nominally 649 × 589 pixels, file size: 50 KB)

based on Image:Biweight.png by wikipedia:en:user:Deimos 28

This image is an example of a Tukey biweight function. It was created under R by the following code:

f = function(x, c) {

   if (abs(x) < c) {
       return(x*((1-(x/c)^2))^2)
   }
   else {
       return(0)
   }
}
x <- (-1000:1000)/100
sapply(x, f, c=3)
library(Cairo)
CairoSVG(file='biweight.svg')
plot(x, y, type="l", col=2)
dev.off()


PD-icon.svg
This work has been released into the public domain by its author, Deimos 28 at the Wikipedia project. This applies worldwide.
In case this is not legally possible:
Deimos 28 grants anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current02:57, 18 November 2007Thumbnail for version as of 02:57, 18 November 2007649 × 589 (50 KB)Eugbased on [Image:Biweight.png] by wikipedia:en:user:Deimos 28 This image is an example of a Tukey biweight function. It was created under R by the following code: <pre> f = function(x, c) { if (abs(x) < c) { return(x*((1-(x/c)^2))^2) }
The following pages on the English Wikipedia use this file (pages on other projects are not listed):

Global file usage

The following other wikis use this file: