Skip to content

Commit

Permalink
typo: reasonable flare is 0.0025, not 0.025
Browse files Browse the repository at this point in the history
  • Loading branch information
xi committed Aug 19, 2022
1 parent 7d4ff79 commit 0df253a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions analysis.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,11 +325,9 @@ I plotted curves for both the Weber-Fechner model (log) and the Stevens model
(pow) with different parameters.

- The log curve with a flare of 0.05 (WCAG 2) is closer to the pow curve with
an exponent of 1/3
an exponent of 1/3 and a flare of 0.0025
- The log curve with a flare of 0.4 is closer to the pow curves with
exponents 0.56 and 0.68 (similar to APCA)
- The pow curve with an exponent of 1/3 **and** a flare of 0.025 is somewhere
in the middle.

This shows that a big part of the different results between WCAG 2.x and APCA
are caused by a different choice in parameters. If we were to change the flare
Expand Down
Binary file modified plots/lightness_comparison.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions plots/lightness_comparison.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ def stevens(flare, alpha):

weber(0.05)
weber(0.4)
stevens(0, 0.333)
stevens(0.025, 0.333)
stevens(0.0025, 0.333)
stevens(0, 0.56)
stevens(0, 0.68)

Expand Down

0 comments on commit 0df253a

Please sign in to comment.