Skip to main content

Neuralyzer::DataSynthesizer::TrajectoryParams

Neuralyzer::DataSynthesizer::TrajectoryParams

Parameters controlling trajectory computation. More…

#include <Trajectory.hpp>

Public Attributes

Name
std::string model
Motion model: “linear”, “sinusoidal”, or “brownian”.
float velocity_x
float velocity_y
float amplitude_x
float amplitude_y
float frequency_x
float frequency_y
float phase_x
float phase_y
float diffusion
uint64_t seed
std::string boundary_mode
Boundary mode: “clamp”, “bounce”, or “wrap”.
float bounds_min_x
float bounds_max_x
float bounds_min_y
float bounds_max_y

Detailed Description

struct Neuralyzer::DataSynthesizer::TrajectoryParams;

Parameters controlling trajectory computation.

Supports three motion models (linear, sinusoidal, brownian) and three boundary modes (clamp, bounce, wrap). Only the fields relevant to the selected model are used; others are ignored.

reflect-cpp enabled for automatic JSON deserialization and ParameterSchema extraction. Fields are intentionally flat (no nesting) so they compose cleanly when flattened into generator-specific param structs.

Public Attributes Documentation

variable model

std::string model = "linear";

Motion model: “linear”, “sinusoidal”, or “brownian”.

variable velocity_x

float velocity_x = 1.0f;

variable velocity_y

float velocity_y = 0.0f;

variable amplitude_x

float amplitude_x = 0.0f;

variable amplitude_y

float amplitude_y = 0.0f;

variable frequency_x

float frequency_x = 0.0f;

variable frequency_y

float frequency_y = 0.0f;

variable phase_x

float phase_x = 0.0f;

variable phase_y

float phase_y = 0.0f;

variable diffusion

float diffusion = 1.0f;

variable seed

uint64_t seed = 42;

variable boundary_mode

std::string boundary_mode = "clamp";

Boundary mode: “clamp”, “bounce”, or “wrap”.

variable bounds_min_x

float bounds_min_x = 0.0f;

variable bounds_max_x

float bounds_max_x = 640.0f;

variable bounds_min_y

float bounds_min_y = 0.0f;

variable bounds_max_y

float bounds_max_y = 480.0f;

Updated on 2026-11-13 at 20:25:41 +0000