specif_functions: * Test specificities *

Description Usage Arguments Details Value Author(s) References Examples

Description

Utility functions to play with specificities.

Usage

1
2
3
4
5
6
7
8
	specif_calc(parts, data, token="peuple", method="base")
	specif_value(N, n, K, k, method="base")
	specif_cdf(parts, data, token="peuple", R=10, new=TRUE, method="base", ...)
	specif_cdmo(parts, data, token="peuple")
	specif_density(parts, data, token="peuple", R=10, new=TRUE, ...)
	specif_mode2cdf(data, maxi=sum(data), token="peuple", ...)
	specif_mode2density(data, maxi=sum(data), token="peuple", ...)
	specif_plot(d, data, token="peuple", R=NULL, method="base", ...) 

Arguments

parts

vector of part indices

d

index of single part

data

table of frequencies

token

token for which to determine the specificity

maxi

maximum part size

R

radius of interval around mode

new

if TRUE start a new window device

method

method used to calculate the specificity

...

other arguments passed to plot functions

N

number of balls in the urn

K

number of white balls in the urn

n

number of balls drawn from the urn

k

vector of observed white balls

Details

Utility functions to play with specificities.

The possible method names are : "base", "log", "gap", "scale" or "logscale".

Value

specif_calc returns a vector of specificities.

Author(s)

Bernard Desgraupes - bernard.desgraupes@u-paris10.fr
University of Paris Ouest - Nanterre - Lab Modal'X

Sylvain Loiseau - sylvain.loiseau@univ-paris13.fr
University Paris-13 - Lab LDI

References

P. Lafon Sur la variabilit<c3><a9> de la fr<c3><a9>quence des formes dans un corpus, Mots, octobre 1980, N<c2><b0>1. pp. 127-165.

Examples

1
2
3
4
5
6

specif documentation built on May 2, 2019, 5:24 p.m.