mirror of
				https://github.com/aportelli/LatAnalyze.git
				synced 2025-11-04 00:04:31 +00:00 
			
		
		
		
	more precise output for fit results
This commit is contained in:
		@@ -98,7 +98,7 @@ void SampleFitResult::print(const bool printXsi, ostream &out) const
 | 
			
		||||
    Index pMax = printXsi ? size() : nPar_;
 | 
			
		||||
    DMat  err = this->variance().cwiseSqrt();
 | 
			
		||||
    
 | 
			
		||||
    sprintf(buf, "chi^2/dof= %.1f/%d= %.2f -- p-value= %.2e", getChi2(),
 | 
			
		||||
    sprintf(buf, "chi^2/dof= %.1e/%d= %.2e -- p-value= %.2e", getChi2(),
 | 
			
		||||
            static_cast<int>(getNDof()), getChi2PerDof(), getPValue());
 | 
			
		||||
    out << buf << endl;
 | 
			
		||||
    for (Index p = 0; p < pMax; ++p)
 | 
			
		||||
 
 | 
			
		||||
@@ -66,7 +66,7 @@ void FitResult::print(const bool printXsi, ostream &out) const
 | 
			
		||||
    char  buf[256];
 | 
			
		||||
    Index pMax = printXsi ? size() : nPar_;
 | 
			
		||||
    
 | 
			
		||||
    sprintf(buf, "chi^2/dof= %.1f/%d= %.2f -- p-value= %.2e", getChi2(),
 | 
			
		||||
    sprintf(buf, "chi^2/dof= %.1e/%d= %.2e -- p-value= %.2e", getChi2(),
 | 
			
		||||
            static_cast<int>(getNDof()), getChi2PerDof(), getPValue());
 | 
			
		||||
    out << buf << endl;
 | 
			
		||||
    for (Index p = 0; p < pMax; ++p)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user