Displaying 2 results from an estimated 2 matches for "fittotal".
2007 Nov 27
4
if condition and for cycles
...f condition
it works fine.
if (op==4) {
t=1:length(time(SeaIce))
fitlinear=lm(SeaIce~t)
windows()
plot.ts(SeaIce)
lines(ts(fitlinear$fitted.values,start=1979,frequency=12))
summary(fitlinear)
fitlinear=ts(fitlinear$fitted.values,start=1979,frequency=12)
c=cos(2*pi*t/12)
s=sin(2*pi*t/12)
fittotal=lm(SeaIce~t+c+s)
summary(fittotal)
windows()
par(mfrow=c(2,1))
plot(t,SeaIce)
lines(fittotal$fit, col=2)
plot(t,fittotal$resid)
windows()
acf(fittotal$resid)
}
2) Why does't this work? I get the message "I'here" ten times but the AIC
results, none.
for (i in 1:10) {
f_...
2000 Nov 08
0
vq diffs
...map=(long*)_ogg_malloc(sizeof(long)*p->mapentries);
for(i=0;i<p->mapentries;i++)
if(get_next_ivalue(in,p->pigeonmap+i)){
@@ -332,5 +333,5 @@
find_seek_to(in,"static long _vq_fitlist_");
reset_next_value();
- p->fitlist=_ogg_malloc(sizeof(long)*p->fittotal);
+ p->fitlist=(long*)_ogg_malloc(sizeof(long)*p->fittotal);
for(i=0;i<p->fittotal;i++)
if(get_next_ivalue(in,p->fitlist+i)){
@@ -342,5 +343,5 @@
reset_next_value();
for(i=0;i<c->dim;i++)pigeons*=p->quantvals;
- p->fitmap=_ogg_malloc(sizeof(lon...