Displaying 6 results from an estimated 6 matches for "th_".
Did you mean:
th
2001 Feb 08
2
dnbinom(,size<1,)=0 (PR#842)
....13493438 0.07826194 0.04578323 0.02692054
I have added a corrected dnbinom() below, which makes the program
works for Rw1021.
-YP-
x_ c(70, 38, 17, 10, 9, 6)
kk_ 0:5
n_ sum(x)
dnbinom_ function(x,n,p){
gamma(x+n)/gamma(n)/gamma(x+1)*p^n * (1-p)^x
}
fn_ function(p){
r_ p[1]
th_ p[2]
ll _ -sum(x[1:max(kk)]*log(dnbinom(kk[-length(kk)],r,th))) -
x[length(kk)]*log(1-pnbinom((max(kk)-1),r,th))
return(ll)
}
a_ nlm(fn,p=c(.9,.5),hes=T)
est_ a$est
phat_ c(dnbinom(kk[-length(kk)],est[1],est[2]),
1-pnbinom((max(kk)-1),est[1],est[2]))
E_ n*phat
chi2_ sum(...
2008 Dec 22
1
Theora video seek and loop implementation
Hi,
I want to use theora as video playback solution in game engine, so far i
have successfully implemented basic video playback (load a file and
play it in game engine). I have based my implementation on example
player but i have used new theora functions (the th_ ones).
It works ok, but i have a problem with implementation of video seek and
loop, i also don't have proper time sync.
I was wondering if there is any sample or a doc that would explain how
to achieve such functionality. If someone could give me a hint on how to
approach this i would be mo...
2006 Mar 28
0
theora-exp namespacing
...t because we'd
intended to converge the APIs before the 1.0 release. I now think
that libtheora 1.0 should keep backward compatibility with the late
alpha API since it's so widely deployed, so that's not going to happen.
There was some discussion of what to use for a prefix. I suggest th_*
or symbols, TH_* for defines, and possibly retaining oc_ and OC_* for
internal names. Better suggestions welcome.
The other part is having separate names for the library binaries. This
had already been done, with the code split into libtheoradec,
libtheoraenc, and libtheorabase for shared and u...
2008 Jun 11
1
Page breaks when encoding ogg/theora
...'d like to do something similar to png2theora.c, where I take
individual screen shots of my game and encode them into a video.
Because png2theora.c uses the legacy C API, I used encoder_example.c
as a template instead. encoder_example.c seems to be the only code out
there that actually uses the th_* API.
The basic program flow is:
- start
- open file
- init theora and ogg
- write first header
- ogg page break
- write remaining headers
- ogg page break
- for each frame
- encode frame
- pass packet to ogg
- if ogg page is ready, write the page out <-- ** problem is here...
2001 Feb 07
3
Goodness of fit to Poisson / NegBinomial
All,
I have some data on parasites on apple leaves and want to do a
goodness of fit test to a Poisson distribution. This seems to
do it:
mites <- c(rep(0,70),
rep(1,38),
rep(2,17),
rep(3,10),
rep(4,9),
rep(5,3),
rep(6,2),
rep(7,1))
tab <- table(mites)
NSU <- length(mites)
N <-
2009 Jul 23
1
[PATCH server] changes required for fedora rawhide inclusion.
...#P>Rk^Nwtz!N^95
zY-2I<my4}wx!6XRlQEdZu?8YbMQXi3 at F128tGb+w6B!Fcav?RAQfADcO^kW8NwXXn
z4+CxFpp6`4PY{d~1)3z#WPuKHpeZ7TrM8?*6|rdoO*f1yn6aIz#vjw0<r*i|Tw@((
zGB522HTKgyzLd;1fY80AWUh!U6|waKVYgl?y0%nwZK>$mQt9-}H;flqp0R`H84v1t
z#?zD=`)E_+5N*mwF2b@}W*8 at FKGYwhT?tqPSPg*dy^gF!WF26=SlW>K3cwqH*Th_d
zw$U(7(Pl=MX2y*wAK73uYmRwFr4Ja!w>00lSvCGl`AD3I$b&|+7RD%DHI_hDv-Fn6
z9K9t^$F!%z#-zi#r1#_L4;wuF7;AP37h`bkKm(5g9y6L1VB(Rt3$WWTrs)o2hJLAW
z>!rpL1RDX})3I%(8%5~`JQw3OsJ)Ix_ZY@*J>S@?JMQK3A6F*|mH(c6{GST4rXkcc
zJ4(!$L=;FB*}6<KR74zFQXPh at TOm3zBZ^ZbfE1V2g05O at 0^EQUE1oJc(=J8?4J!`O
zSb9=pnp...