def test_Fourier_order():
    
    domain = InfiniteTrackCartPole.InfTrackCartPole() #2 continuous dims
    
    order = 3
    rep = Fourier(domain, order=order)
    assert rep.features_num == order ** domain.state_space_dims # 9
    phiVec = rep.phi(np.array([0,0]),terminal=False)
    assert len(phiVec) == order ** domain.state_space_dims # 9
    # all phi vals should be -1 <=  <= 1, since cosine
    assert(np.all(-1 <= phiVec) and np.all(phiVec <= 1))
    

# errorless experiments verified in tests of rlpy/examples/.
Set the default sort column.
dataset/ETHPy150Open rlpy/rlpy/tests/test_representations/test_Fourier.py/test_Fourier_order--crossover with--dataset/ETHPy150Open kwikteam/phy/phy/gui/widgets.py/Table.set_default_sort