On-line wave prediction