2021-05-08 18:18:11 +03:00
< html >
< head >
< meta name = "viewport" content = "width=device-width, initial-scale=1" charset = "UTF-8" >
< title > space.kscience.kmath.samplers< / title >
2022-04-12 11:30:54 +03:00
< / head > < body > < link href = "../../images/logo-icon.svg" rel = "icon" type = "image/svg" > < script > var pathToRoot = "../../" ; < / script >
< script type = "text/javascript" src = "../../scripts/sourceset_dependencies.js" async > < / script > < link href = "../../styles/style.css" rel = "Stylesheet" > < link href = "../../styles/jetbrains-mono.css" rel = "Stylesheet" > < link href = "../../styles/main.css" rel = "Stylesheet" > < link href = "../../styles/prism.css" rel = "Stylesheet" > < link href = "../../styles/logo-styles.css" rel = "Stylesheet" > < script type = "text/javascript" src = "../../scripts/clipboard.js" async > < / script > < script type = "text/javascript" src = "../../scripts/navigation-loader.js" async > < / script > < script type = "text/javascript" src = "../../scripts/platform-content-handler.js" async > < / script > < script type = "text/javascript" src = "../../scripts/main.js" defer > < / script > < script type = "text/javascript" src = "../../scripts/prism.js" async > < / script > < script > c o n s t s t o r a g e = l o c a l S t o r a g e . g e t I t e m ( " d o k k a - d a r k - m o d e " )
const savedDarkMode = storage ? JSON.parse(storage) : false
if(savedDarkMode === true){
document.getElementsByTagName("html")[0].classList.add("theme-dark")
}< / script >
2021-05-08 18:18:11 +03:00
2022-04-12 11:30:54 +03:00
< div class = "navigation-wrapper" id = "navigation-wrapper" >
< div id = "leftToggler" > < span class = "icon-toggler" > < / span > < / div >
< div class = "library-name" > < a href = "../../index.html" > < span > kmath< / span > < / a > < / div >
< div > < / div >
< div class = "pull-right d-flex" >
< div class = "filter-section" id = "filter-section" > < button class = "platform-tag platform-selector common-like" data-active = "" data-filter = ":kmath-stat:dokkaHtmlPartial/commonMain" > common< / button > < / div >
< button id = "theme-toggle-button" > < span id = "theme-toggle" > < / span > < / button >
< div id = "searchBar" > < / div >
< / div >
< / div >
2021-05-08 18:18:11 +03:00
< div id = "container" >
2022-04-12 11:30:54 +03:00
< div id = "leftColumn" >
2021-05-08 18:18:11 +03:00
< div id = "sideMenu" > < / div >
< / div >
< div id = "main" >
< div class = "main-content" id = "content" pageids = "kmath-stat::space.kscience.kmath.samplers////PointingToDeclaration//-443365019" >
2022-04-12 11:30:54 +03:00
< div class = "breadcrumbs" > < a href = "../index.html" > kmath-stat< / a > /< a href = "index.html" > space.kscience.kmath.samplers< / a > < / div >
2021-05-08 18:18:11 +03:00
< div class = "cover " >
2022-04-12 11:30:54 +03:00
< h1 class = "cover" > < span > < span > Package< / span > < / span > < span > space.< / span > < wbr > < span > kscience.< / span > < wbr > < span > kmath.< / span > < wbr > < span > samplers< / span > < / h1 >
2021-05-08 18:18:11 +03:00
< / div >
< div class = "tabbedcontent" >
< div class = "tabs-section" tabs-section = "tabs-section" > < button class = "section-tab" data-active = "" data-togglable = "Types" > Types< / button > < button class = "section-tab" data-togglable = "Functions" > Functions< / button > < / div >
< div class = "tabs-section-body" >
< h2 class = "" > Types< / h2 >
< div class = "table" data-togglable = "Types" > < a data-name = "-533873934%2FClasslikes%2F-443365019" anchor-label = "AhrensDieterExponentialSampler" id = "-533873934%2FClasslikes%2F-443365019" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" > < / a >
< div class = "table-row" data-filterable-current = ":kmath-stat:dokkaHtmlPartial/commonMain" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" >
< div class = "main-subrow keyValue " >
2022-04-12 11:30:54 +03:00
< div class = "" > < span class = "inline-flex" >
< div > < a href = "-ahrens-dieter-exponential-sampler/index.html" > < span > Ahrens< / span > < wbr > < span > Dieter< / span > < wbr > < span > Exponential< / span > < wbr > < span > < span > Sampler< / span > < / span > < / a > < / div >
< span class = "anchor-wrapper" > < span class = "anchor-icon" pointing-to = "-533873934%2FClasslikes%2F-443365019" > < / span >
2021-05-08 18:18:11 +03:00
< div class = "copy-popup-wrapper " > < span class = "copy-popup-icon" > < / span > < span > Link copied to clipboard< / span > < / div >
< / span > < / span > < / div >
< div >
2022-04-12 11:30:54 +03:00
< div class = "title" >
< div class = "platform-hinted with-platform-tabs" data-platform-hinted = "data-platform-hinted" >
< div class = "platform-bookmarks-row" data-toggle-list = "data-toggle-list" > < button class = "platform-bookmark common-like" data-filterable-current = ":kmath-stat:dokkaHtmlPartial/commonMain" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" data-active = "" data-toggle = ":kmath-stat:dokkaHtmlPartial/commonMain" > common< / button > < / div >
< div class = "content sourceset-depenent-content" data-active = "" data-togglable = ":kmath-stat:dokkaHtmlPartial/commonMain" > < div class = "symbol monospace" > < span class = "token keyword" > class < / span > < a href = "-ahrens-dieter-exponential-sampler/index.html" > AhrensDieterExponentialSampler< / a > < span class = "token punctuation" > (< / span > mean< span class = "token operator" > : < / span > < a href = "https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html" > Double< / a > < span class = "token punctuation" > )< / span > : < a href = "../space.kscience.kmath.stat/-sampler/index.html" > Sampler< / a > < span class = "token operator" > < < / span > < span class = "token keyword" > < / span > < a href = "https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html" > Double< / a > < span class = "token operator" > > < / span > < span class = "top-right-position" > < span class = "copy-icon" > < / span > < div class = "copy-popup-wrapper popup-to-left" > < span class = "copy-popup-icon" > < / span > < span > Content copied to clipboard< / span > < / div > < / span > < / div > < div class = "brief " > < p class = "paragraph" > Sampling from an < a href = "http://mathworld.wolfram.com/ExponentialDistribution.html" > exponential distribution< / a > .< / p > < / div > < / div > < / div >
2021-05-08 18:18:11 +03:00
< / div >
< / div >
< / div >
< / div >
< a data-name = "-1454518558%2FClasslikes%2F-443365019" anchor-label = "AhrensDieterMarsagliaTsangGammaSampler" id = "-1454518558%2FClasslikes%2F-443365019" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" > < / a >
< div class = "table-row" data-filterable-current = ":kmath-stat:dokkaHtmlPartial/commonMain" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" >
< div class = "main-subrow keyValue " >
2022-04-12 11:30:54 +03:00
< div class = "" > < span class = "inline-flex" >
< div > < a href = "-ahrens-dieter-marsaglia-tsang-gamma-sampler/index.html" > < span > Ahrens< / span > < wbr > < span > Dieter< / span > < wbr > < span > Marsaglia< / span > < wbr > < span > Tsang< / span > < wbr > < span > Gamma< / span > < wbr > < span > < span > Sampler< / span > < / span > < / a > < / div >
< span class = "anchor-wrapper" > < span class = "anchor-icon" pointing-to = "-1454518558%2FClasslikes%2F-443365019" > < / span >
2021-05-08 18:18:11 +03:00
< div class = "copy-popup-wrapper " > < span class = "copy-popup-icon" > < / span > < span > Link copied to clipboard< / span > < / div >
< / span > < / span > < / div >
< div >
2022-04-12 11:30:54 +03:00
< div class = "title" >
< div class = "platform-hinted with-platform-tabs" data-platform-hinted = "data-platform-hinted" >
< div class = "platform-bookmarks-row" data-toggle-list = "data-toggle-list" > < button class = "platform-bookmark common-like" data-filterable-current = ":kmath-stat:dokkaHtmlPartial/commonMain" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" data-active = "" data-toggle = ":kmath-stat:dokkaHtmlPartial/commonMain" > common< / button > < / div >
< div class = "content sourceset-depenent-content" data-active = "" data-togglable = ":kmath-stat:dokkaHtmlPartial/commonMain" > < div class = "symbol monospace" > < span class = "token keyword" > class < / span > < a href = "-ahrens-dieter-marsaglia-tsang-gamma-sampler/index.html" > AhrensDieterMarsagliaTsangGammaSampler< / a > : < a href = "../space.kscience.kmath.stat/-sampler/index.html" > Sampler< / a > < span class = "token operator" > < < / span > < span class = "token keyword" > < / span > < a href = "https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html" > Double< / a > < span class = "token operator" > > < / span > < span class = "top-right-position" > < span class = "copy-icon" > < / span > < div class = "copy-popup-wrapper popup-to-left" > < span class = "copy-popup-icon" > < / span > < span > Content copied to clipboard< / span > < / div > < / span > < / div > < div class = "brief " > < p class = "paragraph" > Sampling from the < a href = "http://mathworld.wolfram.com/GammaDistribution.html" > gamma distribution< / a > .< / p > < / div > < / div > < / div >
2021-05-08 18:18:11 +03:00
< / div >
< / div >
< / div >
< / div >
< a data-name = "2039416215%2FClasslikes%2F-443365019" anchor-label = "AliasMethodDiscreteSampler" id = "2039416215%2FClasslikes%2F-443365019" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" > < / a >
< div class = "table-row" data-filterable-current = ":kmath-stat:dokkaHtmlPartial/commonMain" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" >
< div class = "main-subrow keyValue " >
2022-04-12 11:30:54 +03:00
< div class = "" > < span class = "inline-flex" >
< div > < a href = "-alias-method-discrete-sampler/index.html" > < span > Alias< / span > < wbr > < span > Method< / span > < wbr > < span > Discrete< / span > < wbr > < span > < span > Sampler< / span > < / span > < / a > < / div >
< span class = "anchor-wrapper" > < span class = "anchor-icon" pointing-to = "2039416215%2FClasslikes%2F-443365019" > < / span >
2021-05-08 18:18:11 +03:00
< div class = "copy-popup-wrapper " > < span class = "copy-popup-icon" > < / span > < span > Link copied to clipboard< / span > < / div >
< / span > < / span > < / div >
< div >
2022-04-12 11:30:54 +03:00
< div class = "title" >
< div class = "platform-hinted with-platform-tabs" data-platform-hinted = "data-platform-hinted" >
< div class = "platform-bookmarks-row" data-toggle-list = "data-toggle-list" > < button class = "platform-bookmark common-like" data-filterable-current = ":kmath-stat:dokkaHtmlPartial/commonMain" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" data-active = "" data-toggle = ":kmath-stat:dokkaHtmlPartial/commonMain" > common< / button > < / div >
< div class = "content sourceset-depenent-content" data-active = "" data-togglable = ":kmath-stat:dokkaHtmlPartial/commonMain" > < div class = "symbol monospace" > < span class = "token keyword" > open < / span > < span class = "token keyword" > class < / span > < a href = "-alias-method-discrete-sampler/index.html" > AliasMethodDiscreteSampler< / a > : < a href = "../space.kscience.kmath.stat/-sampler/index.html" > Sampler< / a > < span class = "token operator" > < < / span > < span class = "token keyword" > < / span > < a href = "https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html" > Int< / a > < span class = "token operator" > > < / span > < span class = "top-right-position" > < span class = "copy-icon" > < / span > < div class = "copy-popup-wrapper popup-to-left" > < span class = "copy-popup-icon" > < / span > < span > Content copied to clipboard< / span > < / div > < / span > < / div > < div class = "brief " > < p class = "paragraph" > Distribution sampler that uses the Alias method. It can be used to sample from n values each with an associated probability. This implementation is based on the detailed explanation of the alias method by Keith Schartz and implements Vose's algorithm.< / p > < / div > < / div > < / div >
2021-05-08 18:18:11 +03:00
< / div >
< / div >
< / div >
< / div >
< a data-name = "2053876811%2FClasslikes%2F-443365019" anchor-label = "BlockingDoubleSampler" id = "2053876811%2FClasslikes%2F-443365019" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" > < / a >
< div class = "table-row" data-filterable-current = ":kmath-stat:dokkaHtmlPartial/commonMain" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" >
< div class = "main-subrow keyValue " >
2022-04-12 11:30:54 +03:00
< div class = "" > < span class = "inline-flex" >
< div > < a href = "-blocking-double-sampler/index.html" > < span > Blocking< / span > < wbr > < span > Double< / span > < wbr > < span > < span > Sampler< / span > < / span > < / a > < / div >
< span class = "anchor-wrapper" > < span class = "anchor-icon" pointing-to = "2053876811%2FClasslikes%2F-443365019" > < / span >
2021-05-08 18:18:11 +03:00
< div class = "copy-popup-wrapper " > < span class = "copy-popup-icon" > < / span > < span > Link copied to clipboard< / span > < / div >
< / span > < / span > < / div >
< div >
2022-04-12 11:30:54 +03:00
< div class = "title" >
< div class = "platform-hinted with-platform-tabs" data-platform-hinted = "data-platform-hinted" >
< div class = "platform-bookmarks-row" data-toggle-list = "data-toggle-list" > < button class = "platform-bookmark common-like" data-filterable-current = ":kmath-stat:dokkaHtmlPartial/commonMain" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" data-active = "" data-toggle = ":kmath-stat:dokkaHtmlPartial/commonMain" > common< / button > < / div >
< div class = "content sourceset-depenent-content" data-active = "" data-togglable = ":kmath-stat:dokkaHtmlPartial/commonMain" > < div class = "symbol monospace" > < span class = "token keyword" > interface < / span > < a href = "-blocking-double-sampler/index.html" > BlockingDoubleSampler< / a > : < a href = "../space.kscience.kmath.stat/-sampler/index.html" > Sampler< / a > < span class = "token operator" > < < / span > < span class = "token keyword" > < / span > < a href = "https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html" > Double< / a > < span class = "token operator" > > < / span > < span class = "top-right-position" > < span class = "copy-icon" > < / span > < div class = "copy-popup-wrapper popup-to-left" > < span class = "copy-popup-icon" > < / span > < span > Content copied to clipboard< / span > < / div > < / span > < / div > < / div > < / div >
2021-05-08 18:18:11 +03:00
< / div >
< / div >
< / div >
< / div >
< a data-name = "675750573%2FClasslikes%2F-443365019" anchor-label = "BoxMullerSampler" id = "675750573%2FClasslikes%2F-443365019" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" > < / a >
< div class = "table-row" data-filterable-current = ":kmath-stat:dokkaHtmlPartial/commonMain" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" >
< div class = "main-subrow keyValue " >
2022-04-12 11:30:54 +03:00
< div class = "" > < span class = "inline-flex" >
< div > < a href = "-box-muller-sampler/index.html" > < span > Box< / span > < wbr > < span > Muller< / span > < wbr > < span > < span > Sampler< / span > < / span > < / a > < / div >
< span class = "anchor-wrapper" > < span class = "anchor-icon" pointing-to = "675750573%2FClasslikes%2F-443365019" > < / span >
2021-05-08 18:18:11 +03:00
< div class = "copy-popup-wrapper " > < span class = "copy-popup-icon" > < / span > < span > Link copied to clipboard< / span > < / div >
< / span > < / span > < / div >
< div >
2022-04-12 11:30:54 +03:00
< div class = "title" >
< div class = "platform-hinted with-platform-tabs" data-platform-hinted = "data-platform-hinted" >
< div class = "platform-bookmarks-row" data-toggle-list = "data-toggle-list" > < button class = "platform-bookmark common-like" data-filterable-current = ":kmath-stat:dokkaHtmlPartial/commonMain" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" data-active = "" data-toggle = ":kmath-stat:dokkaHtmlPartial/commonMain" > common< / button > < / div >
< div class = "content sourceset-depenent-content" data-active = "" data-togglable = ":kmath-stat:dokkaHtmlPartial/commonMain" > < div class = "symbol monospace" > < span class = "token keyword" > object < / span > < a href = "-box-muller-sampler/index.html" > BoxMullerSampler< / a > : < a href = "-normalized-gaussian-sampler/index.html" > NormalizedGaussianSampler< / a > < span class = "top-right-position" > < span class = "copy-icon" > < / span > < div class = "copy-popup-wrapper popup-to-left" > < span class = "copy-popup-icon" > < / span > < span > Content copied to clipboard< / span > < / div > < / span > < / div > < div class = "brief " > < p class = "paragraph" > < a href = "https://en.wikipedia.org/wiki/Box%E2%80%93Muller_transform" > Box-Muller algorithm< / a > for sampling from a Gaussian distribution.< / p > < / div > < / div > < / div >
2021-05-08 18:18:11 +03:00
< / div >
< / div >
< / div >
< / div >
< a data-name = "325292768%2FClasslikes%2F-443365019" anchor-label = "GaussianSampler" id = "325292768%2FClasslikes%2F-443365019" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" > < / a >
< div class = "table-row" data-filterable-current = ":kmath-stat:dokkaHtmlPartial/commonMain" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" >
< div class = "main-subrow keyValue " >
2022-04-12 11:30:54 +03:00
< div class = "" > < span class = "inline-flex" >
< div > < a href = "-gaussian-sampler/index.html" > < span > Gaussian< / span > < wbr > < span > < span > Sampler< / span > < / span > < / a > < / div >
< span class = "anchor-wrapper" > < span class = "anchor-icon" pointing-to = "325292768%2FClasslikes%2F-443365019" > < / span >
2021-05-08 18:18:11 +03:00
< div class = "copy-popup-wrapper " > < span class = "copy-popup-icon" > < / span > < span > Link copied to clipboard< / span > < / div >
< / span > < / span > < / div >
< div >
2022-04-12 11:30:54 +03:00
< div class = "title" >
< div class = "platform-hinted with-platform-tabs" data-platform-hinted = "data-platform-hinted" >
< div class = "platform-bookmarks-row" data-toggle-list = "data-toggle-list" > < button class = "platform-bookmark common-like" data-filterable-current = ":kmath-stat:dokkaHtmlPartial/commonMain" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" data-active = "" data-toggle = ":kmath-stat:dokkaHtmlPartial/commonMain" > common< / button > < / div >
< div class = "content sourceset-depenent-content" data-active = "" data-togglable = ":kmath-stat:dokkaHtmlPartial/commonMain" > < div class = "symbol monospace" > < span class = "token keyword" > class < / span > < a href = "-gaussian-sampler/index.html" > GaussianSampler< / a > < span class = "token punctuation" > (< / span > mean< span class = "token operator" > : < / span > < a href = "https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html" > Double< / a > < span class = "token punctuation" > , < / span > standardDeviation< span class = "token operator" > : < / span > < a href = "https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html" > Double< / a > < span class = "token punctuation" > , < / span > normalized< span class = "token operator" > : < / span > < a href = "-normalized-gaussian-sampler/index.html" > NormalizedGaussianSampler< / a > < span class = "token punctuation" > )< / span > : < a href = "-blocking-double-sampler/index.html" > BlockingDoubleSampler< / a > < span class = "top-right-position" > < span class = "copy-icon" > < / span > < div class = "copy-popup-wrapper popup-to-left" > < span class = "copy-popup-icon" > < / span > < span > Content copied to clipboard< / span > < / div > < / span > < / div > < div class = "brief " > < p class = "paragraph" > Sampling from a Gaussian distribution with given mean and standard deviation.< / p > < / div > < / div > < / div >
2021-05-08 18:18:11 +03:00
< / div >
< / div >
< / div >
< / div >
< a data-name = "1139170303%2FClasslikes%2F-443365019" anchor-label = "KempSmallMeanPoissonSampler" id = "1139170303%2FClasslikes%2F-443365019" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" > < / a >
< div class = "table-row" data-filterable-current = ":kmath-stat:dokkaHtmlPartial/commonMain" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" >
< div class = "main-subrow keyValue " >
2022-04-12 11:30:54 +03:00
< div class = "" > < span class = "inline-flex" >
< div > < a href = "-kemp-small-mean-poisson-sampler/index.html" > < span > Kemp< / span > < wbr > < span > Small< / span > < wbr > < span > Mean< / span > < wbr > < span > Poisson< / span > < wbr > < span > < span > Sampler< / span > < / span > < / a > < / div >
< span class = "anchor-wrapper" > < span class = "anchor-icon" pointing-to = "1139170303%2FClasslikes%2F-443365019" > < / span >
2021-05-08 18:18:11 +03:00
< div class = "copy-popup-wrapper " > < span class = "copy-popup-icon" > < / span > < span > Link copied to clipboard< / span > < / div >
< / span > < / span > < / div >
< div >
2022-04-12 11:30:54 +03:00
< div class = "title" >
< div class = "platform-hinted with-platform-tabs" data-platform-hinted = "data-platform-hinted" >
< div class = "platform-bookmarks-row" data-toggle-list = "data-toggle-list" > < button class = "platform-bookmark common-like" data-filterable-current = ":kmath-stat:dokkaHtmlPartial/commonMain" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" data-active = "" data-toggle = ":kmath-stat:dokkaHtmlPartial/commonMain" > common< / button > < / div >
< div class = "content sourceset-depenent-content" data-active = "" data-togglable = ":kmath-stat:dokkaHtmlPartial/commonMain" > < div class = "symbol monospace" > < span class = "token keyword" > class < / span > < a href = "-kemp-small-mean-poisson-sampler/index.html" > KempSmallMeanPoissonSampler< / a > : < a href = "../space.kscience.kmath.stat/-sampler/index.html" > Sampler< / a > < span class = "token operator" > < < / span > < span class = "token keyword" > < / span > < a href = "https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html" > Int< / a > < span class = "token operator" > > < / span > < span class = "top-right-position" > < span class = "copy-icon" > < / span > < div class = "copy-popup-wrapper popup-to-left" > < span class = "copy-popup-icon" > < / span > < span > Content copied to clipboard< / span > < / div > < / span > < / div > < div class = "brief " > < p class = "paragraph" > Sampler for the Poisson distribution.< / p > < / div > < / div > < / div >
2021-05-08 18:18:11 +03:00
< / div >
< / div >
< / div >
< / div >
< a data-name = "-1830557522%2FClasslikes%2F-443365019" anchor-label = "LargeMeanPoissonSampler" id = "-1830557522%2FClasslikes%2F-443365019" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" > < / a >
< div class = "table-row" data-filterable-current = ":kmath-stat:dokkaHtmlPartial/commonMain" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" >
< div class = "main-subrow keyValue " >
2022-04-12 11:30:54 +03:00
< div class = "" > < span class = "inline-flex" >
< div > < a href = "-large-mean-poisson-sampler/index.html" > < span > Large< / span > < wbr > < span > Mean< / span > < wbr > < span > Poisson< / span > < wbr > < span > < span > Sampler< / span > < / span > < / a > < / div >
< span class = "anchor-wrapper" > < span class = "anchor-icon" pointing-to = "-1830557522%2FClasslikes%2F-443365019" > < / span >
2021-05-08 18:18:11 +03:00
< div class = "copy-popup-wrapper " > < span class = "copy-popup-icon" > < / span > < span > Link copied to clipboard< / span > < / div >
< / span > < / span > < / div >
< div >
2022-04-12 11:30:54 +03:00
< div class = "title" >
< div class = "platform-hinted with-platform-tabs" data-platform-hinted = "data-platform-hinted" >
< div class = "platform-bookmarks-row" data-toggle-list = "data-toggle-list" > < button class = "platform-bookmark common-like" data-filterable-current = ":kmath-stat:dokkaHtmlPartial/commonMain" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" data-active = "" data-toggle = ":kmath-stat:dokkaHtmlPartial/commonMain" > common< / button > < / div >
< div class = "content sourceset-depenent-content" data-active = "" data-togglable = ":kmath-stat:dokkaHtmlPartial/commonMain" > < div class = "symbol monospace" > < span class = "token keyword" > class < / span > < a href = "-large-mean-poisson-sampler/index.html" > LargeMeanPoissonSampler< / a > < span class = "token punctuation" > (< / span > mean< span class = "token operator" > : < / span > < a href = "https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html" > Double< / a > < span class = "token punctuation" > )< / span > : < a href = "../space.kscience.kmath.stat/-sampler/index.html" > Sampler< / a > < span class = "token operator" > < < / span > < span class = "token keyword" > < / span > < a href = "https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html" > Int< / a > < span class = "token operator" > > < / span > < span class = "top-right-position" > < span class = "copy-icon" > < / span > < div class = "copy-popup-wrapper popup-to-left" > < span class = "copy-popup-icon" > < / span > < span > Content copied to clipboard< / span > < / div > < / span > < / div > < div class = "brief " > < p class = "paragraph" > Sampler for the Poisson distribution.< / p > < / div > < / div > < / div >
2021-05-08 18:18:11 +03:00
< / div >
< / div >
< / div >
< / div >
< a data-name = "1017372936%2FClasslikes%2F-443365019" anchor-label = "MarsagliaNormalizedGaussianSampler" id = "1017372936%2FClasslikes%2F-443365019" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" > < / a >
< div class = "table-row" data-filterable-current = ":kmath-stat:dokkaHtmlPartial/commonMain" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" >
< div class = "main-subrow keyValue " >
2022-04-12 11:30:54 +03:00
< div class = "" > < span class = "inline-flex" >
< div > < a href = "-marsaglia-normalized-gaussian-sampler/index.html" > < span > Marsaglia< / span > < wbr > < span > Normalized< / span > < wbr > < span > Gaussian< / span > < wbr > < span > < span > Sampler< / span > < / span > < / a > < / div >
< span class = "anchor-wrapper" > < span class = "anchor-icon" pointing-to = "1017372936%2FClasslikes%2F-443365019" > < / span >
2021-05-08 18:18:11 +03:00
< div class = "copy-popup-wrapper " > < span class = "copy-popup-icon" > < / span > < span > Link copied to clipboard< / span > < / div >
< / span > < / span > < / div >
< div >
2022-04-12 11:30:54 +03:00
< div class = "title" >
< div class = "platform-hinted with-platform-tabs" data-platform-hinted = "data-platform-hinted" >
< div class = "platform-bookmarks-row" data-toggle-list = "data-toggle-list" > < button class = "platform-bookmark common-like" data-filterable-current = ":kmath-stat:dokkaHtmlPartial/commonMain" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" data-active = "" data-toggle = ":kmath-stat:dokkaHtmlPartial/commonMain" > common< / button > < / div >
< div class = "content sourceset-depenent-content" data-active = "" data-togglable = ":kmath-stat:dokkaHtmlPartial/commonMain" > < div class = "symbol monospace" > < span class = "token keyword" > object < / span > < a href = "-marsaglia-normalized-gaussian-sampler/index.html" > MarsagliaNormalizedGaussianSampler< / a > : < a href = "-normalized-gaussian-sampler/index.html" > NormalizedGaussianSampler< / a > < span class = "top-right-position" > < span class = "copy-icon" > < / span > < div class = "copy-popup-wrapper popup-to-left" > < span class = "copy-popup-icon" > < / span > < span > Content copied to clipboard< / span > < / div > < / span > < / div > < div class = "brief " > < p class = "paragraph" > < a href = "https://en.wikipedia.org/wiki/Marsaglia_polar_method" > Marsaglia polar method< / a > for sampling from a Gaussian distribution with mean 0 and standard deviation 1. This is a variation of the algorithm implemented in BoxMullerNormalizedGaussianSampler.< / p > < / div > < / div > < / div >
2021-05-08 18:18:11 +03:00
< / div >
< / div >
< / div >
< / div >
< a data-name = "-1057807369%2FClasslikes%2F-443365019" anchor-label = "NormalizedGaussianSampler" id = "-1057807369%2FClasslikes%2F-443365019" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" > < / a >
< div class = "table-row" data-filterable-current = ":kmath-stat:dokkaHtmlPartial/commonMain" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" >
< div class = "main-subrow keyValue " >
2022-04-12 11:30:54 +03:00
< div class = "" > < span class = "inline-flex" >
< div > < a href = "-normalized-gaussian-sampler/index.html" > < span > Normalized< / span > < wbr > < span > Gaussian< / span > < wbr > < span > < span > Sampler< / span > < / span > < / a > < / div >
< span class = "anchor-wrapper" > < span class = "anchor-icon" pointing-to = "-1057807369%2FClasslikes%2F-443365019" > < / span >
2021-05-08 18:18:11 +03:00
< div class = "copy-popup-wrapper " > < span class = "copy-popup-icon" > < / span > < span > Link copied to clipboard< / span > < / div >
< / span > < / span > < / div >
< div >
2022-04-12 11:30:54 +03:00
< div class = "title" >
< div class = "platform-hinted with-platform-tabs" data-platform-hinted = "data-platform-hinted" >
< div class = "platform-bookmarks-row" data-toggle-list = "data-toggle-list" > < button class = "platform-bookmark common-like" data-filterable-current = ":kmath-stat:dokkaHtmlPartial/commonMain" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" data-active = "" data-toggle = ":kmath-stat:dokkaHtmlPartial/commonMain" > common< / button > < / div >
< div class = "content sourceset-depenent-content" data-active = "" data-togglable = ":kmath-stat:dokkaHtmlPartial/commonMain" > < div class = "symbol monospace" > < span class = "token keyword" > fun < / span > < span class = "token keyword" > interface < / span > < a href = "-normalized-gaussian-sampler/index.html" > NormalizedGaussianSampler< / a > : < a href = "-blocking-double-sampler/index.html" > BlockingDoubleSampler< / a > < span class = "top-right-position" > < span class = "copy-icon" > < / span > < div class = "copy-popup-wrapper popup-to-left" > < span class = "copy-popup-icon" > < / span > < span > Content copied to clipboard< / span > < / div > < / span > < / div > < div class = "brief " > < p class = "paragraph" > Marker interface for a sampler that generates values from an N(0,1) < a href = "https://en.wikipedia.org/wiki/Normal_distribution" > Gaussian distribution< / a > .< / p > < / div > < / div > < / div >
2021-05-08 18:18:11 +03:00
< / div >
< / div >
< / div >
< / div >
< a data-name = "-1311611038%2FClasslikes%2F-443365019" anchor-label = "SmallMeanPoissonSampler" id = "-1311611038%2FClasslikes%2F-443365019" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" > < / a >
< div class = "table-row" data-filterable-current = ":kmath-stat:dokkaHtmlPartial/commonMain" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" >
< div class = "main-subrow keyValue " >
2022-04-12 11:30:54 +03:00
< div class = "" > < span class = "inline-flex" >
< div > < a href = "-small-mean-poisson-sampler/index.html" > < span > Small< / span > < wbr > < span > Mean< / span > < wbr > < span > Poisson< / span > < wbr > < span > < span > Sampler< / span > < / span > < / a > < / div >
< span class = "anchor-wrapper" > < span class = "anchor-icon" pointing-to = "-1311611038%2FClasslikes%2F-443365019" > < / span >
2021-05-08 18:18:11 +03:00
< div class = "copy-popup-wrapper " > < span class = "copy-popup-icon" > < / span > < span > Link copied to clipboard< / span > < / div >
< / span > < / span > < / div >
< div >
2022-04-12 11:30:54 +03:00
< div class = "title" >
< div class = "platform-hinted with-platform-tabs" data-platform-hinted = "data-platform-hinted" >
< div class = "platform-bookmarks-row" data-toggle-list = "data-toggle-list" > < button class = "platform-bookmark common-like" data-filterable-current = ":kmath-stat:dokkaHtmlPartial/commonMain" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" data-active = "" data-toggle = ":kmath-stat:dokkaHtmlPartial/commonMain" > common< / button > < / div >
< div class = "content sourceset-depenent-content" data-active = "" data-togglable = ":kmath-stat:dokkaHtmlPartial/commonMain" > < div class = "symbol monospace" > < span class = "token keyword" > class < / span > < a href = "-small-mean-poisson-sampler/index.html" > SmallMeanPoissonSampler< / a > < span class = "token punctuation" > (< / span > mean< span class = "token operator" > : < / span > < a href = "https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html" > Double< / a > < span class = "token punctuation" > )< / span > : < a href = "../space.kscience.kmath.stat/-sampler/index.html" > Sampler< / a > < span class = "token operator" > < < / span > < span class = "token keyword" > < / span > < a href = "https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html" > Int< / a > < span class = "token operator" > > < / span > < span class = "top-right-position" > < span class = "copy-icon" > < / span > < div class = "copy-popup-wrapper popup-to-left" > < span class = "copy-popup-icon" > < / span > < span > Content copied to clipboard< / span > < / div > < / span > < / div > < div class = "brief " > < p class = "paragraph" > Sampler for the Poisson distribution.< / p > < / div > < / div > < / div >
2021-05-08 18:18:11 +03:00
< / div >
< / div >
< / div >
< / div >
< a data-name = "819348150%2FClasslikes%2F-443365019" anchor-label = "ZigguratNormalizedGaussianSampler" id = "819348150%2FClasslikes%2F-443365019" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" > < / a >
< div class = "table-row" data-filterable-current = ":kmath-stat:dokkaHtmlPartial/commonMain" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" >
< div class = "main-subrow keyValue " >
2022-04-12 11:30:54 +03:00
< div class = "" > < span class = "inline-flex" >
< div > < a href = "-ziggurat-normalized-gaussian-sampler/index.html" > < span > Ziggurat< / span > < wbr > < span > Normalized< / span > < wbr > < span > Gaussian< / span > < wbr > < span > < span > Sampler< / span > < / span > < / a > < / div >
< span class = "anchor-wrapper" > < span class = "anchor-icon" pointing-to = "819348150%2FClasslikes%2F-443365019" > < / span >
2021-05-08 18:18:11 +03:00
< div class = "copy-popup-wrapper " > < span class = "copy-popup-icon" > < / span > < span > Link copied to clipboard< / span > < / div >
< / span > < / span > < / div >
< div >
2022-04-12 11:30:54 +03:00
< div class = "title" >
< div class = "platform-hinted with-platform-tabs" data-platform-hinted = "data-platform-hinted" >
< div class = "platform-bookmarks-row" data-toggle-list = "data-toggle-list" > < button class = "platform-bookmark common-like" data-filterable-current = ":kmath-stat:dokkaHtmlPartial/commonMain" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" data-active = "" data-toggle = ":kmath-stat:dokkaHtmlPartial/commonMain" > common< / button > < / div >
< div class = "content sourceset-depenent-content" data-active = "" data-togglable = ":kmath-stat:dokkaHtmlPartial/commonMain" > < div class = "symbol monospace" > < span class = "token keyword" > object < / span > < a href = "-ziggurat-normalized-gaussian-sampler/index.html" > ZigguratNormalizedGaussianSampler< / a > : < a href = "-normalized-gaussian-sampler/index.html" > NormalizedGaussianSampler< / a > < span class = "top-right-position" > < span class = "copy-icon" > < / span > < div class = "copy-popup-wrapper popup-to-left" > < span class = "copy-popup-icon" > < / span > < span > Content copied to clipboard< / span > < / div > < / span > < / div > < div class = "brief " > < p class = "paragraph" > < a href = "https://en.wikipedia.org/wiki/Ziggurat_algorithm" > Marsaglia and Tsang "Ziggurat"< / a > method for sampling from a Gaussian distribution with mean 0 and standard deviation 1. The algorithm is explained in this paper and this implementation has been adapted from the C code provided therein.< / p > < / div > < / div > < / div >
2021-05-08 18:18:11 +03:00
< / div >
< / div >
< / div >
< / div >
< / div >
< h2 class = "" > Functions< / h2 >
< div class = "table" data-togglable = "Functions" > < a data-name = "-740026430%2FFunctions%2F-443365019" anchor-label = "KempSmallMeanPoissonSampler" id = "-740026430%2FFunctions%2F-443365019" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" > < / a >
< div class = "table-row" data-filterable-current = ":kmath-stat:dokkaHtmlPartial/commonMain" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" >
< div class = "main-subrow keyValue " >
2022-04-12 11:30:54 +03:00
< div class = "" > < span class = "inline-flex" >
< div > < a href = "-kemp-small-mean-poisson-sampler.html" > < span > Kemp< / span > < wbr > < span > Small< / span > < wbr > < span > Mean< / span > < wbr > < span > Poisson< / span > < wbr > < span > < span > Sampler< / span > < / span > < / a > < / div >
< span class = "anchor-wrapper" > < span class = "anchor-icon" pointing-to = "-740026430%2FFunctions%2F-443365019" > < / span >
2021-05-08 18:18:11 +03:00
< div class = "copy-popup-wrapper " > < span class = "copy-popup-icon" > < / span > < span > Link copied to clipboard< / span > < / div >
< / span > < / span > < / div >
< div >
2022-04-12 11:30:54 +03:00
< div class = "title" >
< div class = "platform-hinted with-platform-tabs" data-platform-hinted = "data-platform-hinted" >
< div class = "platform-bookmarks-row" data-toggle-list = "data-toggle-list" > < button class = "platform-bookmark common-like" data-filterable-current = ":kmath-stat:dokkaHtmlPartial/commonMain" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" data-active = "" data-toggle = ":kmath-stat:dokkaHtmlPartial/commonMain" > common< / button > < / div >
< div class = "content sourceset-depenent-content" data-active = "" data-togglable = ":kmath-stat:dokkaHtmlPartial/commonMain" > < div class = "symbol monospace" > < span class = "token keyword" > < / span > < span class = "token keyword" > fun < / span > < a href = "-kemp-small-mean-poisson-sampler.html" > < span class = "token function" > KempSmallMeanPoissonSampler< / span > < / a > < span class = "token punctuation" > (< / span > mean< span class = "token operator" > : < / span > < a href = "https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html" > Double< / a > < span class = "token punctuation" > )< / span > < span class = "token operator" > : < / span > < a href = "-kemp-small-mean-poisson-sampler/index.html" > KempSmallMeanPoissonSampler< / a > < span class = "top-right-position" > < span class = "copy-icon" > < / span > < div class = "copy-popup-wrapper popup-to-left" > < span class = "copy-popup-icon" > < / span > < span > Content copied to clipboard< / span > < / div > < / span > < / div > < / div > < / div >
2021-05-08 18:18:11 +03:00
< / div >
< / div >
< / div >
< / div >
< a data-name = "1853178489%2FFunctions%2F-443365019" anchor-label = "PoissonSampler" id = "1853178489%2FFunctions%2F-443365019" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" > < / a >
< div class = "table-row" data-filterable-current = ":kmath-stat:dokkaHtmlPartial/commonMain" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" >
< div class = "main-subrow keyValue " >
2022-04-12 11:30:54 +03:00
< div class = "" > < span class = "inline-flex" >
< div > < a href = "-poisson-sampler.html" > < span > Poisson< / span > < wbr > < span > < span > Sampler< / span > < / span > < / a > < / div >
< span class = "anchor-wrapper" > < span class = "anchor-icon" pointing-to = "1853178489%2FFunctions%2F-443365019" > < / span >
2021-05-08 18:18:11 +03:00
< div class = "copy-popup-wrapper " > < span class = "copy-popup-icon" > < / span > < span > Link copied to clipboard< / span > < / div >
< / span > < / span > < / div >
< div >
2022-04-12 11:30:54 +03:00
< div class = "title" >
< div class = "platform-hinted with-platform-tabs" data-platform-hinted = "data-platform-hinted" >
< div class = "platform-bookmarks-row" data-toggle-list = "data-toggle-list" > < button class = "platform-bookmark common-like" data-filterable-current = ":kmath-stat:dokkaHtmlPartial/commonMain" data-filterable-set = ":kmath-stat:dokkaHtmlPartial/commonMain" data-active = "" data-toggle = ":kmath-stat:dokkaHtmlPartial/commonMain" > common< / button > < / div >
< div class = "content sourceset-depenent-content" data-active = "" data-togglable = ":kmath-stat:dokkaHtmlPartial/commonMain" > < div class = "symbol monospace" > < span class = "token keyword" > < / span > < span class = "token keyword" > fun < / span > < a href = "-poisson-sampler.html" > < span class = "token function" > PoissonSampler< / span > < / a > < span class = "token punctuation" > (< / span > mean< span class = "token operator" > : < / span > < a href = "https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html" > Double< / a > < span class = "token punctuation" > )< / span > < span class = "token operator" > : < / span > < a href = "../space.kscience.kmath.stat/-sampler/index.html" > Sampler< / a > < span class = "token operator" > < < / span > < span class = "token keyword" > < / span > < a href = "https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html" > Int< / a > < span class = "token operator" > > < / span > < span class = "top-right-position" > < span class = "copy-icon" > < / span > < div class = "copy-popup-wrapper popup-to-left" > < span class = "copy-popup-icon" > < / span > < span > Content copied to clipboard< / span > < / div > < / span > < / div > < div class = "brief " > < p class = "paragraph" > Sampler for the Poisson distribution.< / p > < / div > < / div > < / div >
2021-05-08 18:18:11 +03:00
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
2022-04-12 11:30:54 +03:00
< div class = "footer" > < span class = "go-to-top-icon" > < a href = "#content" id = "go-to-top-link" > < / a > < / span > < span > © 2022 Copyright< / span > < span class = "pull-right" > < span > Generated by < / span > < a href = "https://github.com/Kotlin/dokka" > < span > dokka< / span > < span class = "padded-icon" > < / span > < / a > < / span > < / div >
2021-05-08 18:18:11 +03:00
< / div >
< / div >
< / body > < / html >