|
MTCT
Design Automation and Optimization for ETCS Railway Networks
|
Functions | |
| double | uniform (size_t i, size_t n) |
| Computes uniformly spaced normalized positions. | |
| double | chebyshev (size_t i, size_t n) |
| Computes a Chebyshev separation value for node positioning. | |
| size_t | max_n_blocks (const SeparationFunction &sep_func, double min_frac) |
| Finds the maximum number of blocks with a given minimum separation constraint. | |
|
inlinenodiscard |
Computes a Chebyshev separation value for node positioning.
Calculates the normalized position of a node using Chebyshev polynomial spacing, which provides non-uniform distribution with density clustering near boundaries.
| i | Node index. |
| n | Total number of nodes. |
|
inlinenodiscard |
Finds the maximum number of blocks with a given minimum separation constraint.
| sep_func | Separation function that computes positions for a given block index and total count. |
| min_frac | Minimum required separation, in the range (0, 1]. |
| std::invalid_argument | if min_frac is not in (0, 1]. |
|
inlinenodiscard |
Computes uniformly spaced normalized positions.
| i | Zero-based node index. |
| n | Total number of nodes. |