public class Node extends Object
| Modifier and Type | Field and Description |
|---|---|
double |
alpha |
double |
bestCost |
double |
beta |
double |
cost |
List<Integer> |
fVector |
static double |
LOG2 |
List<Path> |
lpath |
static int |
MINUS_LOG_EPSILON |
Node |
prev |
List<Path> |
rpath |
int |
x |
int |
y |
| Constructor and Description |
|---|
Node() |
| Modifier and Type | Method and Description |
|---|---|
void |
calcAlpha() |
void |
calcBeta() |
void |
calcExpectation(double[] expected,
double Z,
int size)
计算节点期望
|
void |
clear() |
static double |
logsumexp(double x,
double y,
boolean flg) |
public int x
public int y
public double alpha
public double beta
public double cost
public double bestCost
public Node prev
public static double LOG2
public static int MINUS_LOG_EPSILON
public static double logsumexp(double x,
double y,
boolean flg)
public void calcAlpha()
public void calcBeta()
public void calcExpectation(double[] expected,
double Z,
int size)
expected - 输出期望Z - 规范化因子size - 标签个数public void clear()
Copyright © 2014–2021 码农场. All rights reserved.