def test_rp_tp(self): """ Test rp == tp """ rp = np.array( [0.35378443 + 0.0j, 0.34187718 + 0.22831019j, 0.34187718 - 0.22831019j, 0.32978826 + 0.59355161j, 0.32978826 - 0.59355161j]) x = np.array([0.67623674, 0.9277613, 0.70365961, 0.60374009, 0.78008118]) Hz = np.array([0.99604531 - 0.08884669j, 0.99604531 + 0.08884669j, 0.99860302 - 0.05283948j, 0.99860302 + 0.05283948j, 1.00000000 + 0.0j]) tp = ds.dsclansNTF(x, order=5, rmax=.95, Hz=Hz)[1] self.assertTrue(np.allclose(rp, tp, rtol=1e-5, atol=1e-6))
def test_rp_tp(self): """ Test rp == tp """ rp = np.array([ 0.35378443 + 0.0j, 0.34187718 + 0.22831019j, 0.34187718 - 0.22831019j, 0.32978826 + 0.59355161j, 0.32978826 - 0.59355161j ]) x = np.array( [0.67623674, 0.9277613, 0.70365961, 0.60374009, 0.78008118]) Hz = np.array([ 0.99604531 - 0.08884669j, 0.99604531 + 0.08884669j, 0.99860302 - 0.05283948j, 0.99860302 + 0.05283948j, 1.00000000 + 0.0j ]) tp = ds.dsclansNTF(x, order=5, rmax=.95, Hz=Hz)[1] self.assertTrue(np.allclose(rp, tp, rtol=1e-5, atol=1e-6))
def setUp(self): self.x1 = ds.dsclansNTF(np.arange(1, 100.001, .001), 3, .5, 100)