partial eye diagram implementation

This commit is contained in:
Jan Käberich 2022-10-19 17:31:14 +02:00
parent 9a198217b8
commit c7a99af820
17 changed files with 7404 additions and 25 deletions

View file

@ -188,3 +188,16 @@ std::complex<double> Util::addTransmissionLine(std::complex<double> termination_
return Gamma_i;
}
QColor Util::getIntensityGradeColor(double intensity)
{
if(intensity < 0.0) {
return Qt::black;
} else if(intensity > 1.0) {
return Qt::white;
} else if(intensity >= 0.0 && intensity <= 1.0) {
return QColor::fromHsv(Util::Scale<double>(intensity, 0.0, 1.0, 240, 0), 255, 255);
} else {
return Qt::black;
}
}