C# Класс Ocronet.Dynamic.OcroFST.PriorityQueue

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

Add() публичный Метод

Add the id with the corresponding value
public Add ( int id, int tag, float value ) : bool
id int
tag int
value float
Результат bool

AddReplacingId() публичный Метод

This function will move the existing id up instead of creating a new one. Origin name: add_replacing_id
public AddReplacingId ( int id, int tag, float value ) : bool
id int
tag int
value float
Результат bool

Clear() публичный Метод

remove all elements
public Clear ( ) : void
Результат void

FindId() публичный Метод

Origin name: find_id
public FindId ( int id ) : int
id int
Результат int

Length() публичный Метод

get the number of elements in the NBest structure (between 0 and n)
public Length ( ) : int
Результат int

MoveValue() публичный Метод

Origin name: move_value
public MoveValue ( int id, int tag, float value, int start, int end ) : void
id int
tag int
value float
start int
end int
Результат void

PriorityQueue() публичный Метод

constructor for a NBest data structure of size n
public PriorityQueue ( int n ) : System
n int
Результат System

Tag() публичный Метод

public Tag ( int i ) : int
i int
Результат int

Value() публичный Метод

get the value corresponding to rank i
public Value ( int i ) : float
i int
Результат float

this() публичный Метод

get the id corresponding to rank i
public this ( int index ) : int
index int
Результат int