Skip to content

Commit

Permalink
chore: remove types from jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
jobo322 committed Feb 14, 2024
1 parent 388b93f commit 5bfdb39
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/createTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ export interface CreateTreeOptions {

/**
* Function that creates the tree
* @return { Tree | null }
*/

export function createTree(dataXY: DataXY, options: CreateTreeOptions = {}) {
export function createTree(
dataXY: DataXY,
options: CreateTreeOptions = {},
): Tree | null {
const { x, y } = dataXY;
const {
minWindow = 0.16,
Expand Down
4 changes: 2 additions & 2 deletions src/treeSimilarity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ export interface TreeSimilarityOptions {

/**
* Similarity between two nodes
* @return {number} similarity measure between tree nodes
* @return similarity measure between tree nodes
*/
export function treeSimilarity(
treeA: Tree | null,
treeB: Tree | null,
options: TreeSimilarityOptions = {},
) {
): number {
const { alpha = 0.1, beta = 0.33, gamma = 0.001 } = options;

if (treeA === null || treeB === null) {
Expand Down

0 comments on commit 5bfdb39

Please sign in to comment.