File:Alpha-divergence.svg
From testwiki
Jump to navigation
Jump to search
Original file (SVG file, nominally 600 × 400 pixels, file size: 63 KB)
Contents
This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.
Summary
| DescriptionAlpha-divergence.svg | |
| Date | |
| Source | Own work |
| Author | Cosmia Nebula |
| SVG development InfoField |
Source code

This media was created with Julia (high-performance dynamic programming language)
Here is a listing of the source used to create this file.
Here is a listing of the source used to create this file.
Deutsch ∙ македонски ∙ English ∙ +/−
```julia
using Plots, LaTeXStrings, ColorSchemes
function f(t, a)
return (t^a - a*t - (1-a))/(a*(a-1))
end
const xmin = 0
const xmax = 4
colors = ColorScheme(range(colorant"red", colorant"blue", length=5))
plot()
plot!(t-> f(t, 2), xmin, xmax, ylim = (-0.1, 3), color=colors[1], label="Pearson-"*L"χ^2: α=2")
plot!(t-> t*log(t)-t+1, xmin, xmax, color=colors[2], linestyle=:dash, label="KL: "*L"α = 1")
plot!(t-> f(t, 0.5), xmin, xmax, ylim = (-0.1, 3), color=colors[3], label="Hellinger²: "*L"α=0.5")
plot!(t->-log(t)+t-1, xmin, xmax, color=colors[4], linestyle=:dash, label="reverse KL: "*L"α = 0")
plot!(t-> f(t, -1), xmin, xmax, ylim = (-0.1, 3), color=colors[5], label="Neyman-"*L"χ^2: α=-1")
```
Licensing
Cosmia Nebula, the copyright holder of this work, hereby publishes it under the following license:
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
Attribution:
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Captions
alpha-divergence
Items portrayed in this file
depicts
some value
24 May 2022
image/svg+xml
3e868f9d38bfea069c7474d56977f27a2ec90ecb
64,743 byte
400 pixel
600 pixel
File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Thumbnail | Dimensions | User | Comment | |
|---|---|---|---|---|---|
| current | 06:21, 25 May 2022 | 600 × 400 (63 KB) | wikimediacommons>Cosmia Nebula | Uploaded own work with UploadWizard |
File usage
There are no pages that use this file.
Retrieved from "https://en.wiki.beta.math.wmcloud.org/wiki/File:Alpha-divergence.svg"