BudgetFunctions, TruthFunctionspublic class UtilityFunctions extends Object
| Constructor | Description |
|---|---|
UtilityFunctions() |
| Modifier and Type | Method | Description |
|---|---|---|
static double |
and(double... arr) |
A function where the output is conjunctively determined by the inputs
|
static float |
aveAri(float... arr) |
A function where the output is the arithmetic average the inputs
|
static float |
aveGeo(float... arr) |
A function where the output is the geometric average the inputs
|
static double |
c2w(double c,
Parameters narParameters) |
A function to convert confidence to weight
|
static float |
or(float... arr) |
A function where the output is disjunctively determined by the inputs
|
static double |
w2c(double w,
Parameters narParameters) |
A function to convert weight to confidence
|
public static final double and(double... arr)
arr - The inputs, each in [0, 1]public static final float or(float... arr)
arr - The inputs, each in [0, 1]public static final float aveAri(float... arr)
arr - The inputs, each in [0, 1]public static final float aveGeo(float... arr)
arr - The inputs, each in [0, 1]public static final double w2c(double w,
Parameters narParameters)
w - Weight of evidence, a non-negative real numbernarParameters - parameters of the reasonerpublic static final double c2w(double c,
Parameters narParameters)
c - confidence, in [0, 1)narParameters - parameters of the reasonerCopyright © 2020 OpenNARS. All rights reserved.