var searchIndex = {}; searchIndex["probability"] = {"doc":"A probability-theory toolbox.","items":[[0,"distribution","probability","Probability distributions.",null,null],[3,"Bernoulli","probability::distribution","A Bernoulli distribution.",null,null],[3,"Beta","","A beta distribution.",null,null],[3,"Binomial","","A binomial distribution.",null,null],[3,"Categorical","","A categorical distribution.",null,null],[3,"Exponential","","An exponential distribution.",null,null],[3,"Gamma","","A gamma distribution.",null,null],[3,"Gaussian","","A Gaussian distribution.",null,null],[3,"Uniform","","A continuous uniform distribution.",null,null],[11,"clone","","",0,null],[11,"new","","Create a Bernoulli distribution with success probability `p`.",0,{"inputs":[{"name":"f64"}],"output":{"name":"bernoulli"}}],[11,"with_failure","","Create a Bernoulli distribution with failure probability `q`.",0,{"inputs":[{"name":"f64"}],"output":{"name":"bernoulli"}}],[11,"p","","Return the success probability.",0,null],[11,"q","","Return the failure probability.",0,null],[11,"cdf","","",0,null],[11,"pmf","","",0,null],[11,"entropy","","",0,null],[11,"inv_cdf","","",0,null],[11,"kurtosis","","",0,null],[11,"mean","","",0,null],[11,"median","","",0,null],[11,"modes","","",0,null],[11,"sample","","",0,null],[11,"skewness","","",0,null],[11,"variance","","",0,null],[11,"clone","","",1,null],[11,"new","","Create a beta distribution with shape parameters `alpha` and `beta`\non interval `[a, b]`.",1,{"inputs":[{"name":"f64"},{"name":"f64"},{"name":"f64"},{"name":"f64"}],"output":{"name":"beta"}}],[11,"alpha","","Return the first shape parameter.",1,null],[11,"beta","","Return the second shape parameter.",1,null],[11,"a","","Return the left endpoint of the support.",1,null],[11,"b","","Return the right endpoint of the support.",1,null],[11,"cdf","","",1,null],[11,"pdf","","",1,null],[11,"entropy","","",1,null],[11,"inv_cdf","","",1,null],[11,"kurtosis","","",1,null],[11,"mean","","",1,null],[11,"median","","",1,null],[11,"modes","","",1,null],[11,"sample","","",1,null],[11,"skewness","","",1,null],[11,"variance","","",1,null],[11,"clone","","",2,null],[11,"new","","Create a binomial distribution with `n` trails and success probability\n`p`.",2,{"inputs":[{"name":"usize"},{"name":"f64"}],"output":{"name":"binomial"}}],[11,"with_failure","","Create a binomial distribution with `n` trails and failure probability\n`q`.",2,{"inputs":[{"name":"usize"},{"name":"f64"}],"output":{"name":"binomial"}}],[11,"n","","Return the number of trials.",2,null],[11,"p","","Return the success probability.",2,null],[11,"q","","Return the failure probability.",2,null],[11,"cdf","","Compute the cumulative distribution function.",2,null],[11,"pmf","","Compute the probability mass function.",2,null],[11,"entropy","","",2,null],[11,"inv_cdf","","Compute the inverse of the cumulative distribution function.",2,null],[11,"kurtosis","","",2,null],[11,"mean","","",2,null],[11,"median","","",2,null],[11,"modes","","",2,null],[11,"sample","","",2,null],[11,"skewness","","",2,null],[11,"variance","","",2,null],[11,"clone","","",3,null],[11,"new","","Create a categorical distribution with success probability `p`.",3,null],[11,"k","","Return the number of categories.",3,null],[11,"p","","Return the event probabilities.",3,null],[11,"cdf","","",3,null],[11,"pmf","","",3,null],[11,"entropy","","",3,null],[11,"inv_cdf","","",3,null],[11,"kurtosis","","",3,null],[11,"mean","","",3,null],[11,"median","","",3,null],[11,"modes","","",3,null],[11,"sample","","",3,null],[11,"skewness","","",3,null],[11,"variance","","",3,null],[11,"clone","","",4,null],[11,"new","","Create an exponential distribution with rate `lambda`.",4,{"inputs":[{"name":"f64"}],"output":{"name":"exponential"}}],[11,"lambda","","Return the rate parameter.",4,null],[11,"cdf","","",4,null],[11,"pdf","","",4,null],[11,"entropy","","",4,null],[11,"inv_cdf","","",4,null],[11,"kurtosis","","",4,null],[11,"mean","","",4,null],[11,"median","","",4,null],[11,"modes","","",4,null],[11,"sample","","",4,null],[11,"skewness","","",4,null],[11,"variance","","",4,null],[11,"deviation","","",4,null],[11,"clone","","",5,null],[11,"new","","Create a gamma distribution with shape parameter `k` and scale parameter\n`theta`.",5,{"inputs":[{"name":"f64"},{"name":"f64"}],"output":{"name":"gamma"}}],[11,"k","","Return the shape parameter.",5,null],[11,"theta","","Return the scale parameter.",5,null],[11,"cdf","","",5,null],[11,"sample","","Draw a sample.",5,null],[11,"clone","","",6,null],[11,"new","","Create a Gaussian distribution with mean `mu` and standard deviation\n`sigma`.",6,{"inputs":[{"name":"f64"},{"name":"f64"}],"output":{"name":"gaussian"}}],[11,"mu","","Return the mean.",6,null],[11,"sigma","","Return the standard deviation.",6,null],[11,"cdf","","",6,null],[11,"pdf","","",6,null],[11,"entropy","","",6,null],[11,"inv_cdf","","Compute the inverse of the cumulative distribution function.",6,null],[11,"kurtosis","","",6,null],[11,"mean","","",6,null],[11,"median","","",6,null],[11,"modes","","",6,null],[11,"sample","","Draw a sample.",6,null],[11,"skewness","","",6,null],[11,"variance","","",6,null],[11,"deviation","","",6,null],[11,"clone","","",7,null],[11,"new","","Create a uniform distribution on interval `[a, b]`.",7,{"inputs":[{"name":"f64"},{"name":"f64"}],"output":{"name":"uniform"}}],[11,"a","","Return the left endpoint of the support.",7,null],[11,"b","","Return the right endpoint of the support.",7,null],[11,"cdf","","",7,null],[11,"pdf","","",7,null],[11,"entropy","","",7,null],[11,"inv_cdf","","",7,null],[11,"kurtosis","","",7,null],[11,"mean","","",7,null],[11,"median","","",7,null],[11,"sample","","",7,null],[11,"skewness","","",7,null],[11,"variance","","",7,null],[8,"Distribution","","A probability distribution.",null,null],[16,"Value","","The type of outcomes.",8,null],[10,"cdf","","Compute the distribution function.",8,null],[8,"Continuous","","A continuous distribution.",null,null],[10,"pdf","","Compute the probability density function.",9,null],[8,"Discrete","","A discrete distribution.",null,null],[10,"pmf","","Compute the probability mass function.",10,null],[8,"Entropy","","A distribution capable of computing the differential entropy.",null,null],[10,"entropy","","Compute the differential entropy.",11,null],[8,"Inverse","","A distribution capable of inverting the distribution function.",null,null],[10,"inv_cdf","","Compute the inverse of the distribution function.",12,null],[8,"Kurtosis","","A distribution capable of computing the excess kurtosis.",null,null],[10,"kurtosis","","Compute the excess kurtosis.",13,null],[8,"Mean","","A distribution capable of computing the expected value.",null,null],[10,"mean","","Compute the expected value.",14,null],[8,"Median","","A distribution capable of computing the median.",null,null],[10,"median","","Compute the median.",15,null],[8,"Modes","","A distribution capable of computing the modes.",null,null],[10,"modes","","Compute the modes.",16,null],[8,"Sample","","A distribution capable of sampling.",null,null],[10,"sample","","Draw a sample.",17,null],[8,"Skewness","","A distribution capable of computing the skewness.",null,null],[10,"skewness","","Compute the skewness.",18,null],[8,"Variance","","A distribution capable of computing the variance.",null,null],[10,"variance","","Compute the variance.",19,null],[11,"deviation","","Compute the standard deviation.",19,null],[11,"var","","Compute the variance.",19,null],[11,"sd","","Compute the standard deviation.",19,null],[0,"prelude","probability","Reexports of traits, types, and functions.",null,null],[8,"Source","probability::prelude::random","A source of randomness.",null,null],[10,"read_u64","","Read a random `u64`.",20,null],[11,"read_f64","","Read a random `f64`.",20,null],[11,"read","","Read a random element.",20,null],[11,"iter","","Read a sequence of random elements.",20,null],[3,"Sequence","","A sequence of random elements.",null,null],[8,"Element","","A random element.",null,null],[10,"from","","Create a random element from a source.",21,{"inputs":[{"name":"t"}],"output":{"name":"self"}}],[3,"Default","","The default source, which is the Xorshift128+ algorithm.",null,null],[5,"default","","Return the default source.",null,{"inputs":[],"output":{"name":"default"}}],[3,"Xorshift128Plus","","The Xorshift128+ algorithm.",null,null],[8,"Source","probability::prelude","A source of randomness.",null,null],[10,"read_u64","","Read a random `u64`.",20,null],[11,"read_f64","","Read a random `f64`.",20,null],[11,"read","","Read a random element.",20,null],[11,"iter","","Read a sequence of random elements.",20,null],[3,"Bernoulli","","A Bernoulli distribution.",null,null],[3,"Beta","","A beta distribution.",null,null],[3,"Binomial","","A binomial distribution.",null,null],[3,"Categorical","","A categorical distribution.",null,null],[3,"Exponential","","An exponential distribution.",null,null],[3,"Gamma","","A gamma distribution.",null,null],[3,"Gaussian","","A Gaussian distribution.",null,null],[3,"Uniform","","A continuous uniform distribution.",null,null],[0,"sampler","probability","Samplers of random numbers.",null,null],[3,"Independent","probability::sampler","A means of drawing a sequence of independent samples.",null,null],[12,"0","","",22,null],[12,"1","","",22,null],[11,"next","","",22,null],[11,"next","probability::prelude::random","",23,null],[11,"clone","","",24,null],[11,"seed","","Seed the source.",24,null],[11,"read_u64","","",24,null],[11,"clone","","",25,null],[11,"new","","Create an instance of the algorithm.",25,null],[11,"read_u64","","",25,null]],"paths":[[3,"Bernoulli"],[3,"Beta"],[3,"Binomial"],[3,"Categorical"],[3,"Exponential"],[3,"Gamma"],[3,"Gaussian"],[3,"Uniform"],[8,"Distribution"],[8,"Continuous"],[8,"Discrete"],[8,"Entropy"],[8,"Inverse"],[8,"Kurtosis"],[8,"Mean"],[8,"Median"],[8,"Modes"],[8,"Sample"],[8,"Skewness"],[8,"Variance"],[8,"Source"],[8,"Element"],[3,"Independent"],[3,"Sequence"],[3,"Default"],[3,"Xorshift128Plus"]]}; initSearch(searchIndex);