Skip to content

Commit

Permalink
doc: extended noise doc on intensity range
Browse files Browse the repository at this point in the history
  • Loading branch information
LynnSchmittwilken committed Apr 23, 2024
1 parent cc701a3 commit fdf3201
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
3 changes: 2 additions & 1 deletion stimupy/noises/binaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ def binary(
shape : Sequence[Number, Number], Number, or None (default)
shape [height, width] of grating, in pixels
intensity_range : Sequence[Number, Number]
minimum and maximum intensity value; default: (0, 1)
minimum and maximum intensity value; default: (0, 1).
be aware that not every instance has mean=(max-min)/2.
Returns
-------
Expand Down
3 changes: 2 additions & 1 deletion stimupy/noises/narrowbands.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def narrowband(
bandwidth : float
bandwidth of the noise in octaves
intensity_range : Sequence[Number, Number]
minimum and maximum intensity value; default: (0, 1)
minimum and maximum intensity value; default: (0, 1).
be aware that not every instance has mean=(max-min)/2.
pseudo_noise : bool
if True, generate pseudo-random noise with ideal power spectrum.
Expand Down
7 changes: 5 additions & 2 deletions stimupy/noises/naturals.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ def one_over_f(
exponent
exponent used to create 1 / (f**exponent) noise
intensity_range : Sequence[Number, Number]
minimum and maximum intensity value; default: (0, 1)
minimum and maximum intensity value; default: (0, 1).
be aware that not every instance has mean=(max-min)/2.
pseudo_noise : bool
if True, generate pseudo-random noise with ideal power spectrum.
Expand Down Expand Up @@ -109,7 +110,8 @@ def pink(
shape : Sequence[Number, Number], Number, or None (default)
shape [height, width] of grating, in pixels
intensity_range : Sequence[Number, Number]
minimum and maximum intensity value; default: (0, 1)
minimum and maximum intensity value; default: (0, 1).
be aware that not every instance has mean=(max-min)/2.
pseudo_noise : bool
if True, generate pseudo-random noise with ideal power spectrum
Expand Down Expand Up @@ -147,6 +149,7 @@ def brown(
shape [height, width] of grating, in pixels
intensity_range : Sequence[Number, Number]
minimum and maximum intensity value; default: (0, 1)
be aware that not every instance has mean=(max-min)/2.
pseudo_noise : bool
if True, generate pseudo-random noise with ideal power spectrum
Expand Down
3 changes: 2 additions & 1 deletion stimupy/noises/whites.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def white(
shape : Sequence[Number, Number], Number, or None (default)
shape [height, width] of grating, in pixels
intensity_range : Sequence[Number, Number]
minimum and maximum intensity value; default: (0, 1)
minimum and maximum intensity value; default: (0, 1).
be aware that not every instance has mean=(max-min)/2.
pseudo_noise : bool
if True, generate pseudo-random noise with ideal power spectrum
Expand Down

0 comments on commit fdf3201

Please sign in to comment.