fromMos static method
Determines the call quality based on a Mean Opinion Score (MOS).
@param mos The Mean Opinion Score (1.0-5.0) @return The corresponding CallQuality
Implementation
static CallQuality fromMos(double mos) {
if (mos > 4.2) {
return CallQuality.excellent;
} else if (mos >= 4.1) {
return CallQuality.good;
} else if (mos >= 3.7) {
return CallQuality.fair;
} else if (mos >= 3.1) {
return CallQuality.poor;
} else if (mos > 0) {
return CallQuality.bad;
} else {
return CallQuality.unknown;
}
}