Tutorial on sampling theory