search for: mindist

Displaying 15 results from an estimated 15 matches for "mindist".

Did you mean: bindist
2003 May 30
2
Coefficients: (20 not defined because of singularities)
...t. For some reason most variables are removed due to singularities. My linear regression looks this way (I am using only partial data, which is selected by flags): fm<-lm(log(cplex6.time..sec..[flags]) ~ cplex6.cities[flags] + log(1/features.meanOver.frust[flags]) + log(1/features.meanOver.minDist[flags]) + [...] avg..steps.to.loc..Opt..norm..[flags] + NN.List.opt..tour.max.[flags]) As I am using inversion and logarithms I set all data to positiv values, before running lm(): cplex6.time..sec..[cplex6.time..sec..<=0.00001]=0.00001 features.meanOver.frust[features.meanOver.frust<=0.00...
2001 Oct 15
0
predict.fda difficulties
...back() _______________ > traceback() 5: stop(paste("invalid labels; length", nl, "should be 1 or", length(levels))) 4: factor(pclass, labels = dimnames(means)[[1]]) 3: switch(type, variates = return(x), class = { n <- nrow(x) prior <- 2 * log(prior) mindist <- dist(x, means[1, ], dimension) - prior[1] pclass <- rep(1, n) for (i in seq(2, J)) { ndist <- dist(x, means[i, ], dimension) - prior[i] l <- ndist < mindist pclass[l] <- i mindist[l] <- ndist[l] } return...
2008 Dec 15
1
Semi-random movement inside a circle
...the "bouncing off" part right . Any help would be much appreciated. Juliane days=10 circularspace=data.frame(day=c(0:days),xcoord=1,ycoord=1,xvelocity=1,yvelocity=1,xdistwall=0, ydistwall=0, wallxvel=0, wallyvel=0,stochasticxvel=0,stochasticyvel=0) xmax=10 xmin=-10 ymax=10 ymin=-10 mindist=8 plot(xmin:xmax, ymin:ymax, type = "n") circularspace radius=10 timesteplength=1 weightfactor=1 for(i in 1:days) { #This is the stochastic component of the movement circularspace$stochasticxvel[day=i+1]=runif(1,min=-1,max=1) circularspace$stochasticyvel[day=i+1]=runif(1,min=-1,max=1) #Th...
2008 Dec 15
1
Movement within a circle
...the "bouncing off" part right?. ? Any help would be much appreciated. ? Juliane ? days=10 circularspace=data.frame(day=c(0:days),xcoord=1,ycoord=1,xvelocity=1,yvelocity=1,xdistwall=0, ydistwall=0, wallxvel=0, wallyvel=0,stochasticxvel=0,stochasticyvel=0) xmax=10 xmin=-10 ymax=10 ymin=-10 mindist=8 plot(xmin:xmax, ymin:ymax, type = "n") circularspace radius=10 timesteplength=1 weightfactor=1 for(i in 1:days) { #This is the stochastic component of the movement circularspace$stochasticxvel[day=i+1]=runif(1,min=-1,max=1) circularspace$stochasticyvel[day=i+1]=runif(1,min=-1,max=1) #Th...
2002 May 28
1
determination of the number of lags
Dear all, I wish use the "est.variogram" function under R. My question concerns the determination of number of lags. To make this calculation, i determined the biggest and the smallest distance between 2 pairs of points. I built the following tolerance : tol=mindistance/2 and i defined 1 lag as : 1lag=mindist+tol. Then i made a buckle the step of stop of which the maximal distance. But, i don't known if this method is correct. So, my question is : How to determine num.lag correctly? Thanks in advance for all kind of help. C?line RONDEY -.-.-.-.-.-.-...
2000 Sep 13
0
vq: postbeta2 patch
...goto syner; } break; case 'e': - if(sscanf(argv[1],"%lf",&desired)!=1) + if(sscanf(argv[1],"%f",&desired)!=1) goto syner; break; case 'd': - if(sscanf(argv[1],"%lf",&mindist)!=1) + if(sscanf(argv[1],"%f",&mindist)!=1) goto syner; if(init)v.mindist=mindist; --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-requ...
2012 Jan 16
0
FDA predict problem
...I preformed a flexible discriminant analysis (FDA) using a set of 148 trips. A total of 36 predictors were considered. the resulting FDA rule was applied to the 4409 trips and for the same predictors in order to predict to which group the trip will belong. A consistent error is occuring: Error in mindist[l] <- ndist[l] : NAs are not allowed in subscripted assignments script: matriz <- read.table("matriz2010.txt", header=T, sep="\t") names(matriz) matrizR <- matriz[,-c(1:9, 11:15, 32, 35, 36, 47, 50, 51, 56)] names(matrizR) matrizRR <- matrizR[,-c(2:7)] names(m...
2008 Mar 06
2
R code for selecting places spatially and by time
Hi all The code of trying to write relates to selecting properties (given by x and y co-ordinates) spatially (distance "X" from "infected" properties identified by date) over a certain time period. i.e. what properties are within 3 km from properties infected on "2008-01-01" over the last 14 days. Is any one able to give me some clues on how to write code to solve
2008 Mar 20
1
minimum distances
Hi, I have a question about computing shortest Euclidean distances between two data frames of spatial points... I have 2 dataframes (not yet converted to spatial class) >Sewers<-data.frame(x=c(10,20,35,50),y=c(100,150,200,300)) >transect <- data.frame(x=seq(from=0, to=50, by=1),y=seq(from=100, to=150, by=1)) I would like to be able to compute the shortest distance from the
2009 Aug 18
3
Wine Battlefield 1942 Sound
Can someone explain Jeff's hack, I really want to play BF1942 with sound fixed,especially with kdog's comment 15. Thanks http://bugs.winehq.org/show_bug.cgi?id=11499#c15 Thank You, so far both Fedora and Ubuntu forums are mute
2011 Jun 24
2
text overlap in plot
Hey, Here is a snippet that generated a boxplot and separates points so that they do not overlap. I have a problem to avoir text overlapping. Any help would be helpful. > attach(InsectSprays) boxplot(count ~ spray, data = InsectSprays, outpch = NA) stripchart(count ~ spray, data = InsectSprays, vertical = TRUE, method = "jitter", pch = 21, col =
2009 Mar 05
0
predict.fda - NAs are not allowed in subscripted assignments
...820 1780 1730 1690 1660 1630 ... $ VA_D121: num 230 240 250 240 230 210 210 220 230 250 ... $ CAT : num 1 2 3 4 5 6 7 8 9 10 ... $ PRES : num NA NA NA NA NA NA NA NA NA NA ... I'm using: bruto.fitted <- predict(bruto.fda, new.data) but obtained the following message: Error in mindist[l] <- ndist[l] : NAs are not allowed in subscripted assignments What does it means? I can I solve the problem? P.S The same error is returned when I do: bruto.fitted <- predict(bruto.fda,train.data) Any help is appreciated...thanks in advance! Monica
2008 Sep 16
1
Spatial join – optimizing code
Hi, Few days ago I have asked about spatial join on the minimum distance between 2 sets of points with coordinates and attributes in 2 different data frames. Simon Knapp sent code to do it when calculating distance on a sphere using lat, long coordinates and I've change his code to use Euclidian distances since my data had UTM coordinates. Typically one data frame has around 30 000 points
2000 Nov 08
0
vq diffs
...e <string.h> +#include "misc.h" /* ogg_malloc, etc. */ #include "vqgen.h" #include "bookutil.h" -#include "../lib/sharedbook.h" +//#include "../lib/codebook.h" /* Codebook generation happens in two steps: @@ -251,11 +252,11 @@ v->mindist=mindist; v->allocated=32768; - v->pointlist=_ogg_malloc(v->allocated*(v->elements+v->aux)*sizeof(float)); + v->pointlist=(float *)_ogg_malloc(v->allocated*(v->elements+v->aux)*sizeof(float)); v->entries=entries; - v->entrylist=_ogg_malloc(v->entries*v-...
2012 Nov 22
1
prediction problem
...A total of 23 predictors were considered. 20 of the predictors are "numeric" and 3 are "discrete/categorical". The resulting FDA rule was applied to the matrix and for the same predictors in order to predict the color. However a consistent error is occuring: ****Error in mindist[l] <- ndist[l] : ******NAs are not allowed in subscripted assignments It is possible the problem being related with the 2 predictors that are discrete/categorical variables? There is already available some rotine to perform a discriminant analysis considering continuous and discrete/categ...