Calculate correct FWHM statistic and draw circles at 1/20 of max
This commit is contained in:
+38
@@ -182,6 +182,44 @@ bool Star::valid() const
|
||||
return !isnan(m_am);
|
||||
}
|
||||
|
||||
//half width at half maximum = sqrt(2*ln(2))
|
||||
double Star::hwhmX() const
|
||||
{
|
||||
return 1.177410023*m_sx;
|
||||
}
|
||||
|
||||
double Star::hwhmY() const
|
||||
{
|
||||
return 1.177410023*m_sy;
|
||||
}
|
||||
|
||||
// half width at 1/20 maximum
|
||||
double Star::hw20X() const
|
||||
{
|
||||
return 2.447746831*m_sx;
|
||||
}
|
||||
|
||||
double Star::hw20Y() const
|
||||
{
|
||||
return 2.447746831*m_sy;
|
||||
}
|
||||
|
||||
// full width at half maximum
|
||||
double Star::fwhmX() const
|
||||
{
|
||||
return 2.354820045*m_sx;
|
||||
}
|
||||
|
||||
double Star::fwhmY() const
|
||||
{
|
||||
return 2.354820045*m_sy;
|
||||
}
|
||||
|
||||
bool Star::operator<(const Star &d) const
|
||||
{
|
||||
return m_am < d.m_am;
|
||||
}
|
||||
|
||||
StarFit::StarFit(int size)
|
||||
{
|
||||
m_size = size;
|
||||
|
||||
Reference in New Issue
Block a user