Skip to content

Commit

Permalink
Expose CDF of Distribution1D
Browse files Browse the repository at this point in the history
  • Loading branch information
tunabrain committed Nov 28, 2018
1 parent 902c43f commit 8e66a97
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/sampling/Distribution1D.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ class Distribution1D
{
return _pdf[idx];
}

float cdf(int idx) const
{
return _cdf[idx];
}
};

}
Expand Down

0 comments on commit 8e66a97

Please sign in to comment.