apca-introduction

The missing introduction to APCA  https://p.ce9e.org/apca-introduction/
git clone https://git.ce9e.org/apca-introduction.git

commit
046089ed07d227eac68c150c8c658f34c8ff2a94
parent
785aba4da6d8029a86aadbffbe28b28f2e67a5a7
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2022-08-06 06:45
s/stevenson/stevens/

Diffstat

M plots/lightness_comparison.py 10 +++++-----

1 files changed, 5 insertions, 5 deletions


diff --git a/plots/lightness_comparison.py b/plots/lightness_comparison.py

@@ -17,16 +17,16 @@ if __name__ == '__main__':
   17    17 		plt.plot(x, norm(x, lambda y: np.log(y + flare)))
   18    18 		legend.append(f'log(x + {flare})')
   19    19 
   20    -1 	def stevenson(flare, alpha):
   -1    20 	def stevens(flare, alpha):
   21    21 		plt.plot(x, norm(x, lambda y: (y + flare) ** alpha))
   22    22 		legend.append(f'pow(x + {flare}, {alpha})')
   23    23 
   24    24 	weber(0.05)
   25    25 	weber(0.4)
   26    -1 	stevenson(0, 0.333)
   27    -1 	stevenson(0.025, 0.333)
   28    -1 	stevenson(0, 0.56)
   29    -1 	stevenson(0, 0.68)
   -1    26 	stevens(0, 0.333)
   -1    27 	stevens(0.025, 0.333)
   -1    28 	stevens(0, 0.56)
   -1    29 	stevens(0, 0.68)
   30    30 
   31    31 	plt.legend(legend)
   32    32 	plt.savefig('lightness_comparison.png')