()
| 138 | } |
| 139 | |
| 140 | function getParams() { |
| 141 | const ppd = document.getElementById('pointsPerDim'); |
| 142 | const start = document.getElementById('start'); |
| 143 | const end = document.getElementById('end'); |
| 144 | |
| 145 | return { |
| 146 | pointsPerDim: parseInt(ppd.value), start: parseFloat(start.value), |
| 147 | end: parseFloat(end.value), |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | /** |
| 152 | * Generate an evenly spaced 2d latent space. |