model.result().dataset().create(<dtag>,"RayBin") creates a ray bin data set. This data set evaluates an expression over all rays and then groups them into subintervals, or bins, based on which rays return similar values. If this data set is then used in any other ray plot or evaluation, each bin produces a single ray having position and other properties equal to the average over rays in the bin.