mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-05 03:21:42 +00:00
SCRIPT namespace replacements
This commit is contained in:
committed by
Peter Johnson
parent
ae6c043632
commit
9aca8e0fd6
@@ -21,7 +21,7 @@ TEST(SimulatedAnnealingTest, DoubleFunctionOptimizationHeartBeat) {
|
||||
std::mt19937 gen{rd()};
|
||||
std::uniform_real_distribution<> distr{0.0, 1.0};
|
||||
|
||||
frc::SimulatedAnnealing<double> simulatedAnnealing{
|
||||
wpi::math::SimulatedAnnealing<double> simulatedAnnealing{
|
||||
2.0,
|
||||
[&](const double& x) {
|
||||
return std::clamp(x + (distr(gen) - 0.5) * stepSize, -3.0, 3.0);
|
||||
@@ -44,7 +44,7 @@ TEST(SimulatedAnnealingTest, DoubleFunctionOptimizationMultimodal) {
|
||||
std::mt19937 gen{rd()};
|
||||
std::uniform_real_distribution<> distr{0.0, 1.0};
|
||||
|
||||
frc::SimulatedAnnealing<double> simulatedAnnealing{
|
||||
wpi::math::SimulatedAnnealing<double> simulatedAnnealing{
|
||||
2.0,
|
||||
[&](const double& x) {
|
||||
return std::clamp(x + (distr(gen) - 0.5) * stepSize, 0.0, 7.0);
|
||||
|
||||
Reference in New Issue
Block a user