Swatching for machine knitting