pub struct StrategyQuality {
pub profile_ev: [f64; 2],
pub best_response_ev: [f64; 2],
pub nash_conv: f64,
pub exploitability: f64,
pub joint_mass: f64,
}Expand description
Normalized quality of a fixed behavioral strategy profile.
All values are in chips, including half the initial pot in each player’s
invested baseline, as in Terminal. Expectations are over legal initial
private deals with probability w_oop * w_ip / joint_mass and uniform legal
runouts. profile_ev is the profile’s value for each player;
best_response_ev[p] holds the other player’s policy fixed while player p
deviates. NashConv is the sum of the two unilateral gains, and exploitability
is NashConv / 2. For this zero-sum game NashConv also equals the sum of BR EVs.
No value is clipped to conceal numerical error or a negative gain.
Fields§
§profile_ev: [f64; 2][OOP, IP] value of the supplied profile.
best_response_ev: [f64; 2][OOP, IP] value of each player’s best response to the other’s policy.
nash_conv: f64Sum of both players’ gains from deviating to a best response.
exploitability: f64nash_conv / 2.
joint_mass: f64Unnormalized sum of products of compatible initial range weights.
Trait Implementations§
Source§impl Clone for StrategyQuality
impl Clone for StrategyQuality
impl Copy for StrategyQuality
Source§impl Debug for StrategyQuality
impl Debug for StrategyQuality
Source§impl PartialEq for StrategyQuality
impl PartialEq for StrategyQuality
impl StructuralPartialEq for StrategyQuality
Auto Trait Implementations§
impl Freeze for StrategyQuality
impl RefUnwindSafe for StrategyQuality
impl Send for StrategyQuality
impl Sync for StrategyQuality
impl Unpin for StrategyQuality
impl UnsafeUnpin for StrategyQuality
impl UnwindSafe for StrategyQuality
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more