|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnars.inference.UtilityFunctions
public class UtilityFunctions
Common functions on real numbers, mostly in [0,1].
| Constructor Summary | |
|---|---|
UtilityFunctions()
|
|
| Method Summary | |
|---|---|
static float |
and(float... 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 float |
or(float... arr)
A function where the output is disjunctively determined by the inputs |
static float |
w2c(float w)
A function to convert weight to confidence |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UtilityFunctions()
| Method Detail |
|---|
public static float and(float... arr)
arr - The inputs, each in [0, 1]
public static float or(float... arr)
arr - The inputs, each in [0, 1]
public static float aveAri(float... arr)
arr - The inputs, each in [0, 1]
public static float aveGeo(float... arr)
arr - The inputs, each in [0, 1]
public static float w2c(float w)
w - Weight of evidence, a non-negative real number
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||