mirror of
				https://github.com/fjosw/pyerrors.git
				synced 2025-11-04 01:25:46 +01:00 
			
		
		
		
	Merge branch 'develop' into documentation
This commit is contained in:
		
				commit
				
					
						6639a23114
					
				
			
		
					 2 changed files with 22 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -214,6 +214,15 @@ def test_correlated_fit():
 | 
			
		|||
            assert(diff.is_zero_within_error(sigma=5))
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def test_hotelling_t():
 | 
			
		||||
    tt1 = pe.Obs([np.random.rand(50)], ["ens"])
 | 
			
		||||
    tt1.gamma_method()
 | 
			
		||||
    tt2 = pe.Obs([np.random.rand(50)], ["ens"])
 | 
			
		||||
    tt2.gamma_method()
 | 
			
		||||
    ft = pe.fits.least_squares([1, 2], [tt1, tt2], lambda a, x: a[0], correlated_fit=True)
 | 
			
		||||
    assert ft.t2_p_value >= ft.p_value
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def test_fit_corr_independent():
 | 
			
		||||
    dim = 30
 | 
			
		||||
    x = np.arange(dim)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue