Skip to content

Commit

Permalink
Enable translation of model fit summary in CP Chart
Browse files Browse the repository at this point in the history
  • Loading branch information
amtriathlon committed Feb 14, 2022
1 parent edf0cd7 commit 326e5ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Metrics/PDModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ PDModel::deriveCPParameters(int model)
// RMSE
double RMSE=sqrt(mean);
double CV=(RMSE/MEAN) * 100;
fitsummary = QString("RMSE %1w CV %4% R<sup>2</sup>=%3 [LR] %2 points").arg(RMSE, 0, 'f', 0)
fitsummary = tr("RMSE %1w CV %4% R<sup>2</sup>=%3 [LR] %2 points").arg(RMSE, 0, 'f', 0)
.arg(t.size())
.arg(R2, 0, 'f', 3)
.arg(CV, 0, 'f', 1);
Expand Down Expand Up @@ -329,7 +329,7 @@ PDModel::deriveCPParameters(int model)
// RMSE and CV
double RMSE=sqrt(mean);
double CV=(RMSE/MEAN) * 100;
fitsummary = QString("RMSE %1w CV %3% [LM] %2 points").arg(RMSE, 0, 'f', 0)
fitsummary = tr("RMSE %1w CV %3% [LM] %2 points").arg(RMSE, 0, 'f', 0)
.arg(p.size())
.arg(CV, 0, 'f', 1);

Expand Down Expand Up @@ -476,7 +476,7 @@ PDModel::calcSummary()
// RMSE
double RMSE=sqrt(mean);
double CV=(RMSE/MEAN) *100;
fitsummary = QString("RMSE %1w CV %3% [envelope] %2 points").arg(RMSE, 0, 'f', 0).arg(data.size()).arg(CV,0,'f',1);
fitsummary = tr("RMSE %1w CV %3% [envelope] %2 points").arg(RMSE, 0, 'f', 0).arg(data.size()).arg(CV,0,'f',1);
}

//
Expand Down Expand Up @@ -1317,7 +1317,7 @@ ExtendedModel::deriveExtCPParameters()
// RMSE
double RMSE=sqrt(mean);
double CV=(RMSE/MEAN)*100;
fitsummary = QString("RMSE %1w CV %3% [envelope] %2 points").arg(RMSE, 0, 'f', 0).arg(data.size()).arg(CV,0,'f',1);
fitsummary = tr("RMSE %1w CV %3% [envelope] %2 points").arg(RMSE, 0, 'f', 0).arg(data.size()).arg(CV,0,'f',1);
}

QList<QPointF>
Expand Down

0 comments on commit 326e5ff

Please sign in to comment.