You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//计算s
if ( l == 0 || max == min ) {
s = 0;
}else if ( 0 < l && l <= 0.5 ) {
s = ( max - min ) / ( max + min );
}else if ( l > 0.5 ) {
s = ( max - min ) / ( 2 - ( max - min ) ); // 这里有误
};
The text was updated successfully, but these errors were encountered:
第98行,计算s的第三个if,应该改成
(max - min) / (2 - (max + min))
,参考wikiThe text was updated successfully, but these errors were encountered: