
io.virtdata.stathelpers.aliasmethod.AliasSamplerDoubleIntAutoDocsInfo Maven / Gradle / Ivy
// This file is auto-generated.
package io.virtdata.stathelpers.aliasmethod;
import io.virtdata.processors.DocCtorData;
import io.virtdata.processors.DocForFuncCtor;
import io.virtdata.processors.DocFuncData;
import java.lang.String;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
public class AliasSamplerDoubleIntAutoDocsInfo implements DocFuncData {
public String getClassName() {
return "AliasSamplerDoubleInt";
}
public String getPackageName() {
return "io.virtdata.stathelpers.aliasmethod";
}
public String getClassJavadoc() {
return "Uses the alias sampling method to encode and sample from discrete probabilities,\n"
+ "even over larger sets of data. This form requires a unit interval sample value\n"
+ "between 0.0 and 1.0. Assuming the maximal amount of memory is used for distinct\n"
+ "outcomes N, a memory buffer of N*16 bytes is required for this implementation,\n"
+ "requiring 32MB of memory for 1M entries.\n"
+ "\n"
+ "This sampler should be shared between threads, and will be by default, in order\n"
+ "to avoid many instances of a 32MB buffer on heap.\n";
}
public String getInType() {
return "double";
}
public String getOutType() {
return "int";
}
public List getCtors() {
return new ArrayList() {{
add(new DocForFuncCtor("AliasSamplerDoubleInt", "",
new LinkedHashMap() {{
put("stats","java.nio.ByteBuffer");
}},
new ArrayList>() {{
}}
));
add(new DocForFuncCtor("AliasSamplerDoubleInt", "",
new LinkedHashMap() {{
put("events","java.util.List");
}},
new ArrayList>() {{
}}
));
}};
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy