Method | Description | |
---|---|---|
Add ( int id, int tag, float value ) : bool |
Add the id with the corresponding value
|
|
AddReplacingId ( int id, int tag, float value ) : bool |
This function will move the existing id up instead of creating a new one. Origin name: add_replacing_id
|
|
Clear ( ) : void |
remove all elements
|
|
FindId ( int id ) : int |
Origin name: find_id
|
|
Length ( ) : int |
get the number of elements in the NBest structure (between 0 and n)
|
|
MoveValue ( int id, int tag, float value, int start, int end ) : void |
Origin name: move_value
|
|
PriorityQueue ( int n ) : System |
constructor for a NBest data structure of size n
|
|
Tag ( int i ) : int | ||
Value ( int i ) : float |
get the value corresponding to rank i
|
|
this ( int index ) : int |
get the id corresponding to rank i
|
public Add ( int id, int tag, float value ) : bool | ||
id | int | |
tag | int | |
value | float | |
return | bool |
public AddReplacingId ( int id, int tag, float value ) : bool | ||
id | int | |
tag | int | |
value | float | |
return | bool |
public MoveValue ( int id, int tag, float value, int start, int end ) : void | ||
id | int | |
tag | int | |
value | float | |
start | int | |
end | int | |
return | void |