Theoretical bounds on data requirements for the ray-based classification