com.hankcs.hanlp.model.trigram.frequency
类 Probability

java.lang.Object
  继承者 com.hankcs.hanlp.model.trigram.frequency.Probability
所有已实现的接口:
ICacheAble

public class Probability
extends Object
implements ICacheAble

概率统计工具

作者:
hankcs

字段摘要
 BinTrie<Integer> d
           
 
构造方法摘要
Probability()
           
 
方法摘要
 void add(int value, char[]... keyArray)
           
 void add(int value, Collection<char[]> keyArray)
           
 boolean exists(String key)
           
 double freq(char... keyArray)
           
 double freq(char[]... keyArray)
           
 double freq(String key)
           
 int get(char... key)
           
 int get(char[]... keyArray)
           
 int getsum()
           
 boolean load(ByteArray byteArray)
          载入
 Set<String> samples()
           
 void save(DataOutputStream out)
          写入
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

d

public BinTrie<Integer> d
构造方法详细信息

Probability

public Probability()
方法详细信息

exists

public boolean exists(String key)

getsum

public int getsum()

get

public int get(char[]... keyArray)

get

public int get(char... key)

freq

public double freq(String key)

freq

public double freq(char[]... keyArray)

freq

public double freq(char... keyArray)

samples

public Set<String> samples()

add

public void add(int value,
                char[]... keyArray)

add

public void add(int value,
                Collection<char[]> keyArray)

save

public void save(DataOutputStream out)
          throws Exception
从接口 ICacheAble 复制的描述
写入

指定者:
接口 ICacheAble 中的 save
抛出:
Exception

load

public boolean load(ByteArray byteArray)
从接口 ICacheAble 复制的描述
载入

指定者:
接口 ICacheAble 中的 load
返回:


Copyright © 2014–2015 鐮佸啘鍦�/a>. All rights reserved.