pub struct AnalysisResult {
pub is_during_search: bool,
pub turn_number: usize,
pub move_infos: Vec<MoveInfo>,
pub root_info: RootInfo,
pub ownership: Option<Matrix<f64>>,
pub ownership_stdev: Option<Matrix<f64>>,
pub policy: Option<Matrix<f64>>,
pub policy_pass: Option<f64>,
pub human_policy: Option<Matrix<f64>>,
pub human_policy_pass: Option<f64>,
}Expand description
The result of analyzing a position.
Fields§
§is_during_search: boolWhether this is a partial analysis result. false indicates the position is finished analyzing.
turn_number: usizeThe position index, where 0 is the position before the first move.
move_infos: Vec<MoveInfo>The list of moves the engine considered.
root_info: RootInfoInformation about the root position.
ownership: Option<Matrix<f64>>The ownership prediction.
ownership_stdev: Option<Matrix<f64>>The standard deviation of the ownership prediction.
policy: Option<Matrix<f64>>The policy prediction.
policy_pass: Option<f64>The pass policy prediction.
human_policy: Option<Matrix<f64>>The humanSL policy prediction.
human_policy_pass: Option<f64>The humanSL pass policy prediction.
Implementations§
Source§impl AnalysisResult
impl AnalysisResult
Sourcepub fn from_engine_response(
response: AnalysisResponse,
width: u8,
height: u8,
) -> Self
pub fn from_engine_response( response: AnalysisResponse, width: u8, height: u8, ) -> Self
Trait Implementations§
Source§impl Clone for AnalysisResult
impl Clone for AnalysisResult
Source§fn clone(&self) -> AnalysisResult
fn clone(&self) -> AnalysisResult
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 moreAuto Trait Implementations§
impl Freeze for AnalysisResult
impl RefUnwindSafe for AnalysisResult
impl Send for AnalysisResult
impl Sync for AnalysisResult
impl Unpin for AnalysisResult
impl UnsafeUnpin for AnalysisResult
impl UnwindSafe for AnalysisResult
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