Tversky-All-Test-100MIsh / tanh-sharp-approx.svg
Blackroot's picture
Upload 3 files
899bdb2 verified
<svg viewBox="0 0 400 300" xmlns="http://www.w3.org/2000/svg">
<!-- Background -->
<rect width="400" height="300" fill="white"/>
<!-- Grid lines -->
<line x1="50" y1="50" x2="50" y2="250" stroke="#ddd" stroke-width="1"/>
<line x1="50" y1="250" x2="350" y2="250" stroke="#ddd" stroke-width="1"/>
<line x1="50" y1="150" x2="350" y2="150" stroke="#ddd" stroke-width="1" stroke-dasharray="2,2"/>
<!-- Axes -->
<line x1="50" y1="50" x2="50" y2="250" stroke="black" stroke-width="2"/>
<line x1="50" y1="250" x2="350" y2="250" stroke="black" stroke-width="2"/>
<!-- Tanh curves: (tanh(k*x) + 1) / 2 -->
<!-- Sharpness 10 (blue) -->
<path d="M 50.00,250.00 L 53.75,250.00 L 57.50,250.00 L 61.25,250.00 L 65.00,250.00 L 68.75,250.00 L 72.50,250.00 L 76.25,250.00 L 80.00,250.00 L 83.75,250.00 L 87.50,250.00 L 91.25,250.00 L 95.00,250.00 L 98.75,250.00 L 102.50,250.00 L 106.25,250.00 L 110.00,250.00 L 113.75,250.00 L 117.50,250.00 L 121.25,250.00 L 125.00,250.00 L 128.75,250.00 L 132.50,250.00 L 136.25,250.00 L 140.00,250.00 L 143.75,250.00 L 147.50,250.00 L 151.25,250.00 L 155.00,250.00 L 158.75,250.00 L 162.50,249.99 L 166.25,249.98 L 170.00,249.93 L 173.75,249.82 L 177.50,249.51 L 181.25,248.66 L 185.00,246.40 L 188.75,240.51 L 192.50,226.16 L 196.25,196.21 L 200.00,150.00 L 203.75,103.79 L 207.50,73.84 L 211.25,59.49 L 215.00,53.60 L 218.75,51.34 L 222.50,50.49 L 226.25,50.18 L 230.00,50.07 L 233.75,50.02 L 237.50,50.01 L 241.25,50.00 L 245.00,50.00 L 248.75,50.00 L 252.50,50.00 L 256.25,50.00 L 260.00,50.00 L 263.75,50.00 L 267.50,50.00 L 271.25,50.00 L 275.00,50.00 L 278.75,50.00 L 282.50,50.00 L 286.25,50.00 L 290.00,50.00 L 293.75,50.00 L 297.50,50.00 L 301.25,50.00 L 305.00,50.00 L 308.75,50.00 L 312.50,50.00 L 316.25,50.00 L 320.00,50.00 L 323.75,50.00 L 327.50,50.00 L 331.25,50.00 L 335.00,50.00 L 338.75,50.00 L 342.50,50.00 L 346.25,50.00"
fill="none" stroke="#3498db" stroke-width="2.5"/>
<!-- Sharpness 30 (green) -->
<path d="M 50.00,250.00 L 53.75,250.00 L 57.50,250.00 L 61.25,250.00 L 65.00,250.00 L 68.75,250.00 L 72.50,250.00 L 76.25,250.00 L 80.00,250.00 L 83.75,250.00 L 87.50,250.00 L 91.25,250.00 L 95.00,250.00 L 98.75,250.00 L 102.50,250.00 L 106.25,250.00 L 110.00,250.00 L 113.75,250.00 L 117.50,250.00 L 121.25,250.00 L 125.00,250.00 L 128.75,250.00 L 132.50,250.00 L 136.25,250.00 L 140.00,250.00 L 143.75,250.00 L 147.50,250.00 L 151.25,250.00 L 155.00,250.00 L 158.75,250.00 L 162.50,250.00 L 166.25,250.00 L 170.00,250.00 L 173.75,250.00 L 177.50,250.00 L 181.25,250.00 L 185.00,250.00 L 188.75,249.98 L 192.50,249.51 L 196.25,240.51 L 200.00,150.00 L 203.75,59.49 L 207.50,50.49 L 211.25,50.02 L 215.00,50.00 L 218.75,50.00 L 222.50,50.00 L 226.25,50.00 L 230.00,50.00 L 233.75,50.00 L 237.50,50.00 L 241.25,50.00 L 245.00,50.00 L 248.75,50.00 L 252.50,50.00 L 256.25,50.00 L 260.00,50.00 L 263.75,50.00 L 267.50,50.00 L 271.25,50.00 L 275.00,50.00 L 278.75,50.00 L 282.50,50.00 L 286.25,50.00 L 290.00,50.00 L 293.75,50.00 L 297.50,50.00 L 301.25,50.00 L 305.00,50.00 L 308.75,50.00 L 312.50,50.00 L 316.25,50.00 L 320.00,50.00 L 323.75,50.00 L 327.50,50.00 L 331.25,50.00 L 335.00,50.00 L 338.75,50.00 L 342.50,50.00 L 346.25,50.00"
fill="none" stroke="#2ecc71" stroke-width="2.5"/>
<!-- Sharpness 50 (purple) -->
<path d="M 50.00,250.00 L 53.75,250.00 L 57.50,250.00 L 61.25,250.00 L 65.00,250.00 L 68.75,250.00 L 72.50,250.00 L 76.25,250.00 L 80.00,250.00 L 83.75,250.00 L 87.50,250.00 L 91.25,250.00 L 95.00,250.00 L 98.75,250.00 L 102.50,250.00 L 106.25,250.00 L 110.00,250.00 L 113.75,250.00 L 117.50,250.00 L 121.25,250.00 L 125.00,250.00 L 128.75,250.00 L 132.50,250.00 L 136.25,250.00 L 140.00,250.00 L 143.75,250.00 L 147.50,250.00 L 151.25,250.00 L 155.00,250.00 L 158.75,250.00 L 162.50,250.00 L 166.25,250.00 L 170.00,250.00 L 173.75,250.00 L 177.50,250.00 L 181.25,250.00 L 185.00,250.00 L 188.75,250.00 L 192.50,249.99 L 196.25,248.66 L 200.00,150.00 L 203.75,51.34 L 207.50,50.01 L 211.25,50.00 L 215.00,50.00 L 218.75,50.00 L 222.50,50.00 L 226.25,50.00 L 230.00,50.00 L 233.75,50.00 L 237.50,50.00 L 241.25,50.00 L 245.00,50.00 L 248.75,50.00 L 252.50,50.00 L 256.25,50.00 L 260.00,50.00 L 263.75,50.00 L 267.50,50.00 L 271.25,50.00 L 275.00,50.00 L 278.75,50.00 L 282.50,50.00 L 286.25,50.00 L 290.00,50.00 L 293.75,50.00 L 297.50,50.00 L 301.25,50.00 L 305.00,50.00 L 308.75,50.00 L 312.50,50.00 L 316.25,50.00 L 320.00,50.00 L 323.75,50.00 L 327.50,50.00 L 331.25,50.00 L 335.00,50.00 L 338.75,50.00 L 342.50,50.00 L 346.25,50.00"
fill="none" stroke="#9b59b6" stroke-width="2.5"/>
<!-- Y-axis labels -->
<text x="35" y="55" font-family="Arial" font-size="12" text-anchor="end">1</text>
<text x="35" y="155" font-family="Arial" font-size="12" text-anchor="end">0.5</text>
<text x="35" y="255" font-family="Arial" font-size="12" text-anchor="end">0</text>
<!-- X-axis labels -->
<text x="50" y="270" font-family="Arial" font-size="12" text-anchor="middle">-2</text>
<text x="200" y="270" font-family="Arial" font-size="12" text-anchor="middle">0</text>
<text x="350" y="270" font-family="Arial" font-size="12" text-anchor="middle">2</text>
<!-- Legend -->
<rect x="60" y="10" width="15" height="3" fill="#3498db"/>
<text x="80" y="15" font-family="Arial" font-size="11">Sharpness 10</text>
<rect x="160" y="10" width="15" height="3" fill="#2ecc71"/>
<text x="180" y="15" font-family="Arial" font-size="11">Sharpness 30</text>
<rect x="260" y="10" width="15" height="3" fill="#9b59b6"/>
<text x="280" y="15" font-family="Arial" font-size="11">Sharpness 50</text>
</svg>