Map() method
The following are characteristics of the map function, including examples of the input and output:
- Input: Offset and number of samples to be generated. Offset is calculated on the basis of the number of mappers specified.
- Output: Two key value pairs:
- (true, number of points inside the inscribed circle of the square)
- (false, number of points outside of the inscribed circle of the square)
-
Action: Calculates whether each generated point lies inside or outside of the inscribed circle of the square and counts points within both categories.