Prediction of yarn properties by inline measurement and numerical modeling