reset rescaling factor to 1.0 even if its zero as given in the CR block (issue #12)
This commit is contained in:
parent
aa020eee0c
commit
617ed541e3
@ -394,7 +394,8 @@ namespace imc
|
||||
for ( imc::datatype& el: ydata_ )
|
||||
{
|
||||
//std::cout<<"value:"<<el.as_double()<<"\n";
|
||||
el = imc::datatype(el.as_double()*factor_ + offset_);
|
||||
double fact = ( factor_ == 0.0 ) ? 1.0 : factor_;
|
||||
el = imc::datatype(el.as_double()*fact + offset_);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user