Skip to content

Commit 219dd8b

Browse files
committed
docs
1 parent 0f83160 commit 219dd8b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This repository contains a [single file](include/thinks/tph_poisson.h), header-o
1212

1313
## Usage
1414

15-
Poisson disk sampling aims to generate a set of points within a bounded region such that no two points are closer than some user-specified radius to each other. Let's consider a simple [example](examples/simple.c) written in C.
15+
Poisson disk sampling aims to generate a set of points within a bounded region such that no two points are closer than some user-specified radius to each other. Let's consider a simple [example](examples/src/simple.c) written in C.
1616

1717
```C
1818
/* C11 */
@@ -93,7 +93,7 @@ int main(int argc, char *argv[])
9393
}
9494
```
9595
96-
When using C++ it is possible to safely manage the memory allocated by the tph_poisson functions ([example](examples/simple.cpp)), as illustrated below:
96+
When using C++ it is possible to safely manage the memory allocated by the tph_poisson functions ([example](examples/src/simple.cpp)), as illustrated below:
9797
9898
```C++
9999
// C++17
@@ -184,7 +184,7 @@ Besides radius and bounds, there are two additional arguments: `seed` and `max_s
184184

185185
Poisson disk sampling generates samples from a blue noise distribution. We can verify this by plotting the corresponding [periodogram](https://en.wikipedia.org/wiki/Periodogram), noticing that there are minimal low frequency components (close to the center) and no concentrated spikes in energy.
186186

187-
The image below was generated using the provided [periodogram example](examples/periodogram_example.c) and is an average over 100 sampling patterns (original pixel resolution was 2048x2048).
187+
The image below was generated using the provided [periodogram example](examples/src/periodogram_example.c) and is an average over 100 sampling patterns (original pixel resolution was 2048x2048).
188188

189189
![Average periodogram](images/tph_poisson_periodogram_512.png "Average periodogram")
190190

0 commit comments

Comments
 (0)