);var hwa=null,iwa=function(a){_.ua("google.v6t",(0,_.q)());_.ua("google.v6s",0);hwa=new window.Image;_.ua("google.v6",hwa);hwa.onload=hwa.onerror=function(){_.ua("google.v6s",1)};hwa.src=a+"&rndm="+Math.random()};_.bf("ipv6",{init:function(a){a.url&&iwa(a.url)},dispose:function(){hwa=null}});

_.P("ipv6");_.Sg.Sa().$("ipv6");
}catch(e){_._DumpException(e)}
try{
_.tm=function(a){var b=[];_.gba(a,b,!1);return b.join("")};_.npa=function(a,b){return b.y<a.top?b.y-a.top:b.y>a.bottom?b.y-a.bottom:0};_.opa=function(a,b){return b.x<a.left?b.x-a.left:b.x>a.right?b.x-a.right:0};_.ppa=function(a,b){var c=_.opa(a,b),d=_.npa(a,b);return Math.sqrt(c*c+d*d)};_.Q("sy37");
_.um=function(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||(_.Pb||_.ea)&&0==a)return!0;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return!0;default:return!1}};_.rpa=function(a){switch(a){case 61:return 187;case 59:return library(cluster)

eh <- ellipsoidhull(cbind(x=1:4, y = 1:4)) #singular
eh ## center ok, shape "0 volume" --> Warning

set.seed(157)
for(n in 4:10) { ## n=2 and 3 still differ -- platform dependently!
    cat("n = ",n,"\n")
    x2 <- rnorm(n)
    print(ellipsoidhull(cbind(1:n, x2)))
    print(ellipsoidhull(cbind(1:n, x2, 4*x2 + rnorm(n))))
}

set.seed(1)
x <- rt(100, df = 4)
y <- 100 + 5 * x + rnorm(100)
ellipsoidhull(cbind(x,y))
z <- 10  - 8 * x + y + rnorm(100)
(e3 <- ellipsoidhull(cbind(x,y,z)))
d3o <- cbind(x,y + rt(100,3), 2 * x^2 + rt(100, 2))
(e. <- ellipsoidhull(d3o, ret.sq = TRUE))
stopifnot(all.equal(e.$sqdist,
		    with(e., mahalanobis(d3o, center=loc, cov=cov)),
		    tol = 1e-13))
d5 <- cbind(d3o, 2*abs(y)^1.5 + rt(100,3), 3*x - sqrt(abs(y)))
(e5 <- ellipsoidhull(d5, ret.sq = TRUE))
tail(sort(e5$sqdist)) ## 4 values 5.00039 ... 5.0099
