public final class TruthFunctions extends UtilityFunctions
Modifier and Type | Class | Description |
---|---|---|
static class |
TruthFunctions.EnumType |
|
static class |
TruthFunctions.EternalizedTruthValue |
Indicates the result of eternalization
Implements the same functionality like TruthValue
|
Constructor | Description |
---|---|
TruthFunctions() |
Modifier and Type | Method | Description |
---|---|---|
static TruthValue |
abduction(TruthValue v1,
float reliance,
Parameters narParameters) |
{M, <P ==> M>} |- P
|
static TruthValue |
abduction(TruthValue v1,
TruthValue v2,
Parameters narParameters) |
{<S ==> M>, <P ==> M>} |- <S ==> P>
|
static TruthValue |
analogy(TruthValue v1,
TruthValue v2,
Parameters narParameters) |
{<S ==> M>, <M <=> P>} |- <S ==> P>
|
static TruthValue |
anonymousAnalogy(TruthValue v1,
TruthValue v2,
Parameters narParameters) |
{(&&, <#x() ==> M>, <#x() ==> P>), S ==> M} |- <S ==> P>
|
static TruthValue |
comparison(TruthValue v1,
TruthValue v2,
Parameters narParameters) |
{<M ==> S>, <M ==> P>} |- <S <=> P>
|
static TruthValue |
contraposition(TruthValue v1,
Parameters narParameters) |
{<A ==> B>} |- <(--, B) ==> (--, A)>
|
static TruthValue |
conversion(TruthValue v1,
Parameters narParameters) |
{<A ==> B>} |- <B ==> A>
|
static TruthValue |
deduction(TruthValue v1,
float reliance,
Parameters narParameters) |
{M, <M ==> P>} |- P
|
static TruthValue |
deduction(TruthValue v1,
TruthValue v2,
Parameters narParameters) |
{<S ==> M>, <M ==> P>} |- <S ==> P>
|
static TruthValue |
desireDed(TruthValue v1,
TruthValue v2,
Parameters narParameters) |
A function specially designed for desire value [To be refined]
|
static TruthValue |
desireInd(TruthValue v1,
TruthValue v2,
Parameters narParameters) |
A function specially designed for desire value [To be refined]
|
static TruthValue |
desireStrong(TruthValue v1,
TruthValue v2,
Parameters narParameters) |
A function specially designed for desire value [To be refined]
|
static TruthValue |
desireWeak(TruthValue v1,
TruthValue v2,
Parameters narParameters) |
A function specially designed for desire value [To be refined]
|
static TruthFunctions.EternalizedTruthValue |
eternalize(TruthValue v1,
Parameters narParameters) |
From one moment to eternal
|
static TruthValue |
exemplification(TruthValue v1,
TruthValue v2,
Parameters narParameters) |
{<M ==> S>, <P ==> M>} |- <S ==> P>
|
static TruthValue |
induction(TruthValue v1,
TruthValue v2,
Parameters narParameters) |
{<M ==> S>, <M ==> P>} |- <S ==> P>
|
static TruthValue |
intersection(TruthValue v1,
TruthValue v2,
Parameters narParameters) |
{<M --> S>, <M <-> P>} |- <M --> (S&P)>
|
static TruthValue |
lookupTruthFunctionAndCompute(TruthFunctions.EnumType type,
TruthValue a,
TruthValue b,
Parameters narParameters) |
lookup the truth function and compute the value
|
static TruthValue |
lookupTruthFunctionByBoolAndCompute(boolean flag,
TruthFunctions.EnumType typeTrue,
TruthFunctions.EnumType typeFalse,
TruthValue a,
TruthValue b,
Parameters narParameters) |
lookup the truth function and compute the value - for two truth functions which are decided by flag
|
static TruthValue |
lookupTruthOrNull(TruthValue a,
TruthValue b,
Parameters narParameters,
Object... values) |
lookup the truth function by the first boolean which is true or return null if no boolean is true
|
static TruthValue |
negation(TruthValue v1,
Parameters narParameters) |
{A} |- (--A)
|
static TruthValue |
reduceConjunction(TruthValue v1,
TruthValue v2,
Parameters narParameters) |
{(--, (&&, A, B)), B} |- (--, A)
|
static TruthValue |
reduceConjunctionNeg(TruthValue v1,
TruthValue v2,
Parameters narParameters) |
{(--, (&&, A, (--, B))), (--, B)} |- (--, A)
|
static TruthValue |
reduceDisjunction(TruthValue v1,
TruthValue v2,
Parameters narParameters) |
{(||, A, B), (--, B)} |- A
|
static TruthValue |
resemblance(TruthValue v1,
TruthValue v2,
Parameters narParameters) |
{<S <=> M>, <M <=> P>} |- <S <=> P>
|
private static TruthValue |
revision(TruthValue v1,
TruthValue v2,
TruthValue result,
Parameters narParameters) |
|
static TruthValue |
revision(TruthValue v1,
TruthValue v2,
Parameters narParameters) |
{<S ==> P>, <S ==> P>} |- <S ==> P>
|
static float |
temporalProjection(long sourceTime,
long targetTime,
long currentTime,
Parameters param) |
|
static TruthValue |
union(TruthValue v1,
TruthValue v2,
Parameters narParameters) |
{<M --> S>, <M > P>} |- <M --> (S|P)>
|
public static TruthValue lookupTruthFunctionAndCompute(TruthFunctions.EnumType type, TruthValue a, TruthValue b, Parameters narParameters)
type
- truth-functiona
- truth value of the first premiseb
- truth value of the second premisepublic static TruthValue lookupTruthFunctionByBoolAndCompute(boolean flag, TruthFunctions.EnumType typeTrue, TruthFunctions.EnumType typeFalse, TruthValue a, TruthValue b, Parameters narParameters)
flag
- which type to choosetypeTrue
- truth-function for the case when the flag is truetypeFalse
- truth-function for the case when the flag is falsea
- truth value of the first premiseb
- truth value of the second premisepublic static TruthValue lookupTruthOrNull(TruthValue a, TruthValue b, Parameters narParameters, Object... values)
values
- tuples of boolean conditional values and their corresponding truth functiona
- truth value of the first premiseb
- truth value of the second premisepublic static final TruthValue conversion(TruthValue v1, Parameters narParameters)
v1
- Truth value of the premisepublic static final TruthValue negation(TruthValue v1, Parameters narParameters)
v1
- Truth value of the premisepublic static final TruthValue contraposition(TruthValue v1, Parameters narParameters)
v1
- Truth value of the premisepublic static final TruthValue revision(TruthValue v1, TruthValue v2, Parameters narParameters)
v1
- Truth value of the first premisev2
- Truth value of the second premiseprivate static final TruthValue revision(TruthValue v1, TruthValue v2, TruthValue result, Parameters narParameters)
public static final TruthValue deduction(TruthValue v1, TruthValue v2, Parameters narParameters)
v1
- Truth value of the first premisev2
- Truth value of the second premisepublic static final TruthValue deduction(TruthValue v1, float reliance, Parameters narParameters)
v1
- Truth value of the first premisereliance
- Confidence of the second (analytical) premisepublic static final TruthValue analogy(TruthValue v1, TruthValue v2, Parameters narParameters)
v1
- Truth value of the first premisev2
- Truth value of the second premisepublic static final TruthValue resemblance(TruthValue v1, TruthValue v2, Parameters narParameters)
v1
- Truth value of the first premisev2
- Truth value of the second premisepublic static final TruthValue abduction(TruthValue v1, TruthValue v2, Parameters narParameters)
v1
- Truth value of the first premisev2
- Truth value of the second premisepublic static final TruthValue abduction(TruthValue v1, float reliance, Parameters narParameters)
v1
- Truth value of the first premisereliance
- Confidence of the second (analytical) premisepublic static final TruthValue induction(TruthValue v1, TruthValue v2, Parameters narParameters)
v1
- Truth value of the first premisev2
- Truth value of the second premisepublic static final TruthValue exemplification(TruthValue v1, TruthValue v2, Parameters narParameters)
v1
- Truth value of the first premisev2
- Truth value of the second premisepublic static final TruthValue comparison(TruthValue v1, TruthValue v2, Parameters narParameters)
v1
- Truth value of the first premisev2
- Truth value of the second premisepublic static final TruthValue desireStrong(TruthValue v1, TruthValue v2, Parameters narParameters)
v1
- Truth value of the first premisev2
- Truth value of the second premisepublic static final TruthValue desireWeak(TruthValue v1, TruthValue v2, Parameters narParameters)
v1
- Truth value of the first premisev2
- Truth value of the second premisepublic static final TruthValue desireDed(TruthValue v1, TruthValue v2, Parameters narParameters)
v1
- Truth value of the first premisev2
- Truth value of the second premisepublic static final TruthValue desireInd(TruthValue v1, TruthValue v2, Parameters narParameters)
v1
- Truth value of the first premisev2
- Truth value of the second premisepublic static final TruthValue union(TruthValue v1, TruthValue v2, Parameters narParameters)
v1
- Truth value of the first premisev2
- Truth value of the second premisepublic static final TruthValue intersection(TruthValue v1, TruthValue v2, Parameters narParameters)
v1
- Truth value of the first premisev2
- Truth value of the second premisepublic static final TruthValue reduceDisjunction(TruthValue v1, TruthValue v2, Parameters narParameters)
v1
- Truth value of the first premisev2
- Truth value of the second premisepublic static final TruthValue reduceConjunction(TruthValue v1, TruthValue v2, Parameters narParameters)
v1
- Truth value of the first premisev2
- Truth value of the second premisepublic static final TruthValue reduceConjunctionNeg(TruthValue v1, TruthValue v2, Parameters narParameters)
v1
- Truth value of the first premisev2
- Truth value of the second premisepublic static final TruthValue anonymousAnalogy(TruthValue v1, TruthValue v2, Parameters narParameters)
v1
- Truth value of the first premisev2
- Truth value of the second premisepublic static final TruthFunctions.EternalizedTruthValue eternalize(TruthValue v1, Parameters narParameters)
v1
- Truth value of the premisepublic static final float temporalProjection(long sourceTime, long targetTime, long currentTime, Parameters param)
Copyright © 2020 OpenNARS. All rights reserved.