public class AstHist extends AstPrimitive
| Modifier and Type | Class and Description |
|---|---|
static class |
AstHist.FourthMomTask |
static class |
AstHist.HistTask |
static class |
AstHist.ThirdMomTask |
| Constructor and Description |
|---|
AstHist() |
| Modifier and Type | Method and Description |
|---|---|
ValFrame |
apply(Env env,
Env.StackHelp stk,
AstRoot[] asts)
Primary method to invoke this function, passing all the parameters
as the `asts` list.
|
java.lang.String[] |
args()
List of argument names.
|
double[] |
computeCuts(Vec v,
int numBreaks) |
static int |
doane(Vec v) |
static int |
fd(Vec v,
double h) |
static double |
fds_h(Vec v) |
static double |
fourth_moment(Vec v) |
static double |
log2(double numerator) |
int |
nargs()
Number of function's arguments + 1.
|
static int |
rice(Vec v) |
static int |
scott(Vec v,
double h) |
static double |
scotts_h(Vec v) |
static double |
sigma_g1(Vec v) |
static int |
sqrt(Vec v) |
java.lang.String |
str()
String representation of this Ast object in the Rapids language.
|
static int |
sturges(Vec v) |
static double |
third_moment(Vec v) |
description, example, execasBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonBytes, toJsonString, write, writeExternal, writeJSONpublic java.lang.String[] args()
AstPrimitiveargs in class AstPrimitivepublic int nargs()
AstPrimitivenargs in class AstPrimitivepublic java.lang.String str()
AstRootAstPrimitives this is the name of the function; for
AstParameters this is either the name of the variable, or the
value of the numeric constant that the parameter represents. For more
complicated constructs such as AstExec or AstFunction
this method should return those objects as a Rapids string.public ValFrame apply(Env env, Env.StackHelp stk, AstRoot[] asts)
AstPrimitivePrimary method to invoke this function, passing all the parameters as the `asts` list.
apply in class AstPrimitiveenv - Current execution environment. Variables are looked up here.stk - TODO need clarificationasts - List of AstRoot expressions that are arguments to the
function. First element in this list is the function itself.public static int sturges(Vec v)
public static int rice(Vec v)
public static int sqrt(Vec v)
public static int doane(Vec v)
public static int scott(Vec v, double h)
public static int fd(Vec v, double h)
public static double fds_h(Vec v)
public static double scotts_h(Vec v)
public static double log2(double numerator)
public static double sigma_g1(Vec v)
public static double third_moment(Vec v)
public static double fourth_moment(Vec v)
public double[] computeCuts(Vec v, int numBreaks)