def _ma_invtransparams(macoefs):
 tmp = macoefs.copy()
 for j in range((len(macoefs) - 1), 0, (-1)):
  b = macoefs[j]
  for kiter in range(j):
   tmp[kiter] = ((macoefs[kiter] - (b * macoefs[((j - kiter) - 1)])) / (1 - (b ** 2)))
  macoefs[:j] = tmp[:j]
 invmacoefs = (- np.log(((1 - macoefs) / (1 + macoefs))))
 return invmacoefs

def _ma_invtransparams ( macoefs ) : tmp = macoefs . copy ( ) for j in range ( ( len ( macoefs ) - 1 ) , 0 , ( - 1 ) ) : b = macoefs [ j ] for kiter in range ( j ) : tmp [ kiter ] = ( ( macoefs [ kiter ] - ( b * macoefs [ ( ( j - kiter ) - 1 ) ] ) ) / ( 1 - ( b ** 2 ) ) ) macoefs [ : j ] = tmp [ : j ] invmacoefs = ( - np . log ( ( ( 1 - macoefs ) / ( 1 + macoefs ) ) ) ) return invmacoefs
inverse of the jones reparameterization parameters params : array the transformed ma coefficients .