mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-23 15:50:49 +01:00
[apps/regression] Avoid displaying the regression graph in there is not
enough data for a regression Change-Id: If0f65e2a377fb3f91d008d21812e318e92583548
This commit is contained in:
@@ -16,14 +16,17 @@ ViewController * GraphController::initialisationParameterController() {
|
||||
}
|
||||
|
||||
bool GraphController::isEmpty() {
|
||||
if (m_data->numberOfPairs() == 0) {
|
||||
if (m_data->numberOfPairs() < 2 || isinf(m_data->slope()) || isnan(m_data->slope())) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
const char * GraphController::emptyMessage() {
|
||||
return "Aucune donnee a tracer";
|
||||
if (m_data->numberOfPairs() == 0) {
|
||||
return "Aucune donnee a tracer";
|
||||
}
|
||||
return "Pas assez de donnees pour un regression";
|
||||
}
|
||||
|
||||
bool GraphController::handleEnter() {
|
||||
|
||||
Reference in New Issue
Block a user