File:Biweight.svg

From formulasearchengine
Jump to navigation Jump to search

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

This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

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()


This work has been released into the public domain by its author, Deimos 28, at the English 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.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

image/svg+xml

09c82ca57f6cf870c5a720664a0e2b77009c07e1

51,606 byte

589 pixel

649 pixel

File history

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

Date/TimeThumbnailDimensionsUserComment
current04:57, 18 November 2007Thumbnail for version as of 04:57, 18 November 2007649 × 589 (50 KB)wikimediacommons>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) }

There are no pages that use this file.