# [−][src]Module pbrt::core::sampling

Draw random samples from a chosen probability distribution.

## Structs

Distribution1D | |

Distribution2D |

## Functions

concentric_sample_disk | Uniformly distribute samples over a unit disk. |

cosine_hemisphere_pdf | Returns a weight of cos_theta / PI. |

cosine_sample_hemisphere | Cosine-weighted hemisphere sampling using Malley's method. |

latin_hypercube | |

power_heuristic | Reducing the variance according to Veach's heuristic. |

shuffle | Randomly permute an array of |

stratified_sample_1d | |

stratified_sample_2d | |

uniform_cone_pdf | Uniformly sample rays in a cone of directions. Probability density function (PDF). |

uniform_hemisphere_pdf | Uniformly sample rays in a hemisphere. Probability density function (PDF). |

uniform_sample_cone | Samples in a cone of directions about the (0, 0, 1) axis. |

uniform_sample_hemisphere | Uniformly sample rays in a hemisphere. Choose a direction. |

uniform_sample_sphere | Uniformly sample rays in a full sphere. Choose a direction. |

uniform_sample_triangle | Uniformly distributing samples over isosceles right triangles actually works for any triangle. |

uniform_sphere_pdf | Probability density function (PDF) of a sphere. |