Record Class NoulAnswer
java.lang.Object
java.lang.Record
ai.redouble.nucleo.harness.decision.NoulAnswer
- Record Components:
probability- the probability of yes, 0 to 1
- All Implemented Interfaces:
Answer
The answer to a
Noul: one number, the probability that the statement is true. It
carries no separate confidence, because it already is the model's belief; a value near one
half is the model saying it has nothing to go on.- Since:
- 0.1 (2026-09-24)
- Author:
- Andrey Santrosyan
-
Constructor Summary
ConstructorsConstructorDescriptionNoulAnswer(double probability) Creates an instance of aNoulAnswerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of theprobabilityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NoulAnswer
public NoulAnswer(double probability) Creates an instance of aNoulAnswerrecord class.- Parameters:
probability- the value for theprobabilityrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
probability
public double probability()Returns the value of theprobabilityrecord component.- Returns:
- the value of the
probabilityrecord component
-