Displaying 1 result from an estimated 1 matches for "uniquetoken".
Did you mean:
uniquetokens
2008 Oct 24
1
Help regarding oo package
...something that I have been
stuck with for a while now.
I am trying to create a class like :
setConstructorS3("MyPTCM",function(tokenslist=0)
{
extend(Object(), "MyPTCM",
.gamma = 0.0,
.rho = 0.0,
.phi = 0.0,
.tokenslist = tokenslist,
.uniquetokens = unique(tokenslist),
.numtypes = length(uniquetokens),
.Nsq = numtypes*numtypes,
.CONTEXTti = array(0,dim=numtypes),
.CONTEXTtim = array(0,dim=numtypes),
.ZEROVEC = .CONTEXTti,
.MTF = array(0.0,dim=c(numtypes,numtypes)),
.hIN = array(0.0,dim=c(numt...