Displaying 1 result from an estimated 1 matches for "truedistance".
2010 Aug 09
2
TRUE/FALSE
Here is my code
# determine the DDOA measurements
for(e in 1:numSensors)
{
for(f in 1:numSensors)
{
if((combos[e,f]==1)
{
# true distance between each sensor and the target
truedistance[e]<-sqrt((targetX-sensorX[e])^2+(targetY-sensorY[e])^2)
# add an error that has a N(0, sigma^2) distribution
truedistance[e]<-(truedistance[e]+rnorm(1, 0, sigma))
}
#truedistance[1] <- (truedistance[1]+50)
#determine DDOA measurements (reference sensor is sens...