Function raster
pub fn raster(problem: Problem, size: usize) -> RasterExpand description
Samples a two-parameter problem at pixel centres and colors the values.
Values are compressed with a square root before color mapping, so the shallow basins near the optimum stay distinguishable from the high ridges at the box edges. A problem without exactly two parameters yields an empty raster.