コード例 #1
0
	def test_synthesize_front(self) :
		components = np.zeros((6,6), dtype=np.float32)
		components[shi(0,+1)] = fuma[shi(0,+1)]
		surface = synthesizeSH(components, nelevations=5, nazimuths=8)
		npAlmostEqual( 0, surface[2,4])
		npAlmostEqual(-1, surface[2,2])
		npAlmostEqual(+1, surface[2,6])
		npAlmostEqual( 0, surface[2,0])
コード例 #2
0
	def _test_analyze_continuous(self) :
		surface = np.ones((5,10))
		result = analyzeSH(surface)
		expected = np.zeros((6,6), dtype=np.float32)
		npAlmostEqual(expected, result)