ott.neural.networks.velocity_field.VelocityField.time_encoder#
- VelocityField.time_encoder(n_freqs=128)#
Encode time \(t\) into a cyclical representation.
Time \(t\) is encoded as \(cos(\hat{t})\) and \(sin(\hat{t})\) where \(\hat{t} = [2\pi t, 2\pi 2 t,\dots, 2\pi n_f t]\).