model.result().dataset().create(<dtag>,"RayBin") creates a ray bin dataset. This dataset evaluates an expression over all rays and then groups them into subintervals, or bins, based on which rays return similar values. If this dataset 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.