-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* started adding types * no type errors * set var to itself
- Loading branch information
1 parent
7baa9d2
commit 2d99138
Showing
24 changed files
with
2,097 additions
and
263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"commonjs": true, | ||
"es2021": true | ||
}, | ||
"extends": ["google", "prettier"], | ||
"overrides": [], | ||
"parserOptions": { | ||
"sourceType": "module", | ||
"ecmaVersion": "latest" | ||
}, | ||
"rules": { | ||
"require-jsdoc": "off", | ||
"no-implicit-globals": "error", | ||
"no-undef": "error" | ||
}, | ||
"plugins": ["eslint-plugin-html"], | ||
"ignorePatterns": ["lib/"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.DS_Store | ||
/node_modules/ | ||
/www/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"trailingComma": "all", | ||
"tabWidth": 2, | ||
"semi": true, | ||
"singleQuote": true, | ||
"printWidth": 79 | ||
"trailingComma": "all", | ||
"tabWidth": 2, | ||
"semi": true, | ||
"singleQuote": true, | ||
"printWidth": 79 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Searchspace – An interactive visualization for various similarity measures. | ||
* Copyright (C) 2024 Josua Krause | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
// @ts-check | ||
|
||
import App, { DF_L1, DF_L2 } from './js/app.js'; | ||
|
||
new App('#main', '#header', '#footer', '#topbar', '#bottombar', '#error', { | ||
title: 'L2 and L1 Distance Functions', | ||
unitCircle: false, | ||
allowUnitCircle: false, | ||
convexHull: false, | ||
allowConvexHull: false, | ||
distanceFn: DF_L2, | ||
metrics: [DF_L1, DF_L2], | ||
}).repaintWhenReady(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Searchspace – An interactive visualization for various similarity measures. | ||
* Copyright (C) 2024 Josua Krause | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
// @ts-check | ||
|
||
import App, { DF_COS, DF_L2_PROJ } from './js/app.js'; | ||
|
||
new App('#main', '#header', '#footer', '#topbar', '#bottombar', '#error', { | ||
title: 'Cosine Similarity Function', | ||
unitCircle: true, | ||
allowUnitCircle: true, | ||
convexHull: false, | ||
allowConvexHull: false, | ||
distanceFn: DF_COS, | ||
metrics: [DF_COS, DF_L2_PROJ], | ||
}).repaintWhenReady(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* Searchspace – An interactive visualization for various similarity measures. | ||
* Copyright (C) 2024 Josua Krause | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
// @ts-check | ||
|
||
import App, { DF_DOT, DF_DOT_ADJ } from './js/app.js'; | ||
|
||
new App('#main', '#header', '#footer', '#topbar', '#bottombar', '#error', { | ||
title: 'Adjusted Dot Product', | ||
unitCircle: true, | ||
allowUnitCircle: true, | ||
convexHull: true, | ||
allowConvexHull: true, | ||
distanceFn: DF_DOT_ADJ, | ||
metrics: [DF_DOT, DF_DOT_ADJ], | ||
points: [ | ||
[-1.1, 0.6], | ||
[-1.3, 0.7], | ||
[-1.4, 0.8], | ||
[-1.4, 1.0], | ||
[-1.0, 0.9], | ||
[-1.0, 0.8], | ||
], | ||
initRefPos: [-1.2, 0.8], | ||
}).repaintWhenReady(); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Searchspace – An interactive visualization for various similarity measures. | ||
* Copyright (C) 2024 Josua Krause | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
// @ts-check | ||
|
||
import App from './js/app.js'; | ||
|
||
new App( | ||
'#main', | ||
'#header', | ||
'#footer', | ||
'#topbar', | ||
'#bottombar', | ||
'#error', | ||
).repaintWhenReady(); |
Oops, something went wrong.