Skip to main content

Module ndarray

Module ndarray 

Source

Re-exports§

pub use derive_new;
pub use paste;

Macros§

build_global_feature_adder
Declares a new global feature-adder type and wires it into the ndarray traits.
build_player_feature_adder
Declares a new per-player feature-adder type and wires it into the ndarray traits.
convert_all
Converts a fixed list of values with a caller-supplied error mapper.
convert_all_floats
Converts a fixed list of float-like values using convert_float_conversion_error.
global_feature_adder
Implements the ndarray feature-adder traits for an existing global feature type.
impl_feature_adder
Implements FeatureAdder for a type that already satisfies LengthCheckedFeatureAdder.
impl_player_feature_adder
Implements PlayerFeatureAdder for a type that satisfies LengthCheckedPlayerFeatureAdder.
player_feature_adder
Implements the ndarray feature-adder traits for an existing per-player feature type.

Structs§

BallHasBeenHit
BallRigidBody
BallRigidBodyBasis
BallRigidBodyNoVelocities
BallRigidBodyQuaternionVelocities
BallRigidBodyQuaternions
CurrentTime
FrameTime
InterpolatedBallRigidBodyNoVelocities
Global feature adder that samples an interpolated ball rigid body.
InterpolatedPlayerRigidBodyNoVelocities
Per-player feature adder that samples an interpolated car rigid body.
NDArrayCollector
Collects replay frames into a dense 2D feature matrix.
NDArrayColumnHeaders
Column headers for the frame matrix emitted by NDArrayCollector.
PlayerAnyJump
PlayerBallDistance
PlayerBoost
PlayerDemolishedBy
PlayerDodgeRefreshed
PlayerJump
PlayerLocalRelativeBallPosition
PlayerLocalRelativeBallVelocity
PlayerRelativeBallPosition
PlayerRelativeBallVelocity
PlayerRigidBody
PlayerRigidBodyBasis
PlayerRigidBodyNoVelocities
PlayerRigidBodyQuaternionVelocities
PlayerRigidBodyQuaternions
ReplayMetaWithHeaders
Replay metadata bundled with the ndarray column layout used to produce it.
ReplicatedGameStateTimeRemaining
ReplicatedStateName
SecondsRemaining
VelocityAddedBallRigidBodyNoVelocities
VelocityAddedPlayerRigidBodyNoVelocities

Traits§

FeatureAdder
Object-safe interface for frame-level feature extraction.
LengthCheckedFeatureAdder
Fixed-width feature extractor with compile-time column count validation.
LengthCheckedPlayerFeatureAdder
Fixed-width per-player feature extractor with compile-time column count validation.
PlayerFeatureAdder
Object-safe interface for per-player feature extraction.

Functions§

convert_float_conversion_error
Maps arbitrary conversion failures into a generic float-conversion error.
get_rigid_body_properties
Converts a rigid body into position, Euler rotation, and velocity features.
get_rigid_body_properties_basis
Converts a rigid body into position, basis vectors, and velocity features.
get_rigid_body_properties_no_velocities
Converts a rigid body into position and quaternion-rotation features only.
get_rigid_body_properties_quaternion
Converts a rigid body into position, quaternion rotation, and velocity features.

Type Aliases§

FeatureAdders
Heterogeneous collection of frame-level feature adders.
PlayerFeatureAdders
Heterogeneous collection of per-player feature adders.