Skip to content

Commit

Permalink
test erfc pointloss | 426
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jul 14, 2020
1 parent 181fed3 commit 92e71f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions src/Etterna/MinaCalc/MinaCalc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,7 @@ CalcInternal(float& gotpoints,
const auto pts = static_cast<float>(calc.itv_points.at(hi).at(i));
calc.debugValues.at(hi)[2][Pts].at(i) = pts;
if (x < (*v).at(i)) {
const auto lostpoints =
(pts - (pts * fastpow(x / (*v).at(i), powindromemordniwop)));
const auto lostpoints = hit_the_road(x, (*v).at(i));
gotpoints -= lostpoints;
calc.debugValues.at(hi)[2][PtLoss].at(i) = abs(lostpoints);
}
Expand All @@ -426,8 +425,7 @@ CalcInternal(float& gotpoints,
if (x < (*v).at(i)) {
const auto pts =
static_cast<float>(calc.itv_points.at(hi).at(i));
gotpoints -=
(pts - (pts * fastpow(x / (*v).at(i), powindromemordniwop)));
gotpoints -= hit_the_road(x, (*v).at(i));
}
}
}
Expand Down Expand Up @@ -899,7 +897,7 @@ MinaSDCalcDebug(
}
}

int mina_calc_version = 425;
int mina_calc_version = 426;
auto
GetCalcVersion() -> int
{
Expand Down
2 changes: 1 addition & 1 deletion src/Etterna/MinaCalc/SequencingHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ static const float s_init = -5.F;
static const float ms_init = 5000.F;

// global multiplier to standardize baselines
static const float finalscaler = 3.632F * 1.06F;
static const float finalscaler = 3.632F;

inline auto
column_count(const unsigned& notes) -> int
Expand Down

0 comments on commit 92e71f2

Please sign in to comment.