Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Struct

ZigTable

Public Struct
std.Random.ziggurat.ZigTable
pub const ZigTable = struct

Fields

r: f64
x: [257]f64
f: [257]f64
pdf: fn (f64) f64

probability density function used as a fallback

is_symmetric: bool

whether the distribution is symmetric

zero_case: fn (Random, f64) f64

fallback calculation in the case we are in the 0 block

File

Random/ziggurat.zig:53
53
54
55
56
57
58
59
60
61
62
63
64
pub const ZigTable = struct {
    r: f64,
    x: [257]f64,
    f: [257]f64,

    // probability density function used as a fallback
    pdf: fn (f64) f64,
    // whether the distribution is symmetric
    is_symmetric: bool,
    // fallback calculation in the case we are in the 0 block
    zero_case: fn (Random, f64) f64,
}