UNPKG
entropyx
Version:
latest (0.0.6)
0.0.6
A simple data mining library, written in TypeScript
github.com/ArioAtlas/entropyx
ArioAtlas/entropyx
entropyx
/
dist
/
utils
/
max-heap.d.ts
12 lines
(11 loc)
•
230 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
export
declare
class
MaxHeap
<T
extends
{
deltaQ
:
number
; }> {
private
heap;
size
():
number
;
insert
(
item
: T):
void
;
extractMax
(): T |
undefined
;
private
bubbleUp;
private
bubbleDown;
private
swap; }