Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CppRaytracer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yoel
CppRaytracer
Commits
1047847a
Commit
1047847a
authored
4 years ago
by
Yoel
Browse files
Options
Downloads
Patches
Plain Diff
Sampler now uses the Random module
parent
8d87d7e3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
RayTracer/sampling/StratifiedSampler.h
+1
-5
1 addition, 5 deletions
RayTracer/sampling/StratifiedSampler.h
with
1 addition
and
5 deletions
RayTracer/sampling/StratifiedSampler.h
+
1
−
5
View file @
1047847a
#pragma once
#include
<random>
#include
"../tools/Random.h"
#include
"Sampler.h"
namespace
util
{
...
...
@@ -14,7 +13,4 @@ class StratifiedSampler : public Sampler {
std
::
shared_ptr
<
Sampler
>
sampler
;
size_t
n
;
};
static
std
::
random_device
rd
;
static
std
::
mt19937
gen
(
rd
());
static
std
::
uniform_real_distribution
<>
dis
(
0
,
1.0
);
}
// namespace util
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment