pub struct ScoreAnswer {
pub score: f64,
pub legend: BTreeMap<usize, Value>,
pub probabilities: BTreeMap<usize, f64>,
pub confidence: f64,
}Expand description
The answer to a Score.
score: the probability-weighted level index. With four levels it lies between 0 and 3 and can fall between levels.legend: each level index mapped to the description the question gave itprobabilities: each level index mapped to its probabilityconfidence: how concentrated the distribution is, from 0 to 1
Compare score against thresholds. Don’t use it to recover an exact
quantity between two levels.
Fields§
§score: f64§legend: BTreeMap<usize, Value>§probabilities: BTreeMap<usize, f64>§confidence: f64Implementations§
Source§impl ScoreAnswer
impl ScoreAnswer
Trait Implementations§
Source§impl Clone for ScoreAnswer
impl Clone for ScoreAnswer
Source§fn clone(&self) -> ScoreAnswer
fn clone(&self) -> ScoreAnswer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScoreAnswer
impl Debug for ScoreAnswer
Source§impl PartialEq for ScoreAnswer
impl PartialEq for ScoreAnswer
impl StructuralPartialEq for ScoreAnswer
Auto Trait Implementations§
impl Freeze for ScoreAnswer
impl RefUnwindSafe for ScoreAnswer
impl Send for ScoreAnswer
impl Sync for ScoreAnswer
impl Unpin for ScoreAnswer
impl UnsafeUnpin for ScoreAnswer
impl UnwindSafe for ScoreAnswer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more