search for: segment2

Displaying 6 results from an estimated 6 matches for "segment2".

Did you mean: segments
2010 Jan 07
1
adding 3D arrows to 3D plots
...y. Is this possible using plot3d, or another 3d plotter in R? While it is easy to draw segments in plot3d (e.g. below), I haven't figured out how to add arrow heads, or to create 3d arrows from scratch. ##two headless segments: library(rgl) matrix(1:2,2,3)->segment1 matrix(1:3,2,3)->segment2 plot3d(segment2,type="l",col="red",xlim=c(0,3),ylim=c(0,3),zlim=c(0,3)) plot3d(segment1,type="l",add=TRUE,col="blue") thanks for any assistance, -Eben J. Gering Graduate Student, Section of Integrative Biology The University of Texas at Austin
2013 Apr 26
1
remote backend
So, given what I've read in the documentation I would create a text file named document_database.txt that might have the following: remote 192.168.1.10:30000 chert /var/lib/xapian_database/segment1 remote 192.168.1.10:30000 chert /var/lib/xapian_database/segment2 remote 192.168.1.10:30000 chert /var/lib/xapian_database/segment3 etc. I would then in my PHP program open document_database.txt as the database and then perform normal Xapian calls. The same with Omega, I would, in my template, change the database name to document_database.txt. Given the a...
2003 Feb 24
2
"trace" argument in legend() (PR#2578)
...quot;Hello!","Hi!"),pch=1:2,lty=1:2,trace=T) xchar= 0.05178 ; (yextra,ychar)= 0 0.07941 rect2(0,0, w=0.3474, h=0.2382...) segments2(0.015540.01554,-0.07941-0.1588, dx=0.1036, dy=0, ...) points2( 0.06732 0.06732 , -0.07941 -0.1588 , pch= 1 2 ...) On the line starting by "segment2", the coordinates are not separated by a space like on the line starting by "points2". My recommendation is to remove the option `sep = ""' in this part of code in legend(). [...] if (trace) catn(" segments2(", xt[ok.l] + x.off * xchar,...
2010 Jul 21
0
Piecewise regression using lme()
...el on a time series. The idea is to divide the series into segments and then to apply linear regression models on each segment but in a "global way" and considering heteroskedasticity between the segments. For example, I build a time series y with 3 segments: segment1=1:20+rnorm(20,0,2) segment2=20-2*1:30+rnorm(30,0,5) segment3=-40+0.5*1:15+rnorm(15,0,1) group=c(rep(1,20),rep(2,30),rep(3,15)) y=c(segment1,segment2,segment3) Data=data.frame(y,t=1:65,group=as.factor(group)) the model I'd like to fit is: y_t= (beta_01+beta_11*t+error_1)*(group==1)+(beta_02+beta_12*t+error_2)*(group==2...
2010 May 09
1
lattice: customising panel.segments using groups
.../get but simply got confused. If I remove lty, lwd and col specifications I simply get all segments with the same attributes. i.e. it seems to be ignoring the "groups" #The answer I want: Segment1 has co-ordinates (0,0, x2=-0.25, y2 = -0.5) and be solid, red and of width 1.25 Segment2 has co-ordinates (0,0, x2=0.25, y2 = 0) and be dashed, black and of width 0.75 Segment3 has co-ordinates (0,0, x2=0.8, y2 = 0.75) and be dotted, blue and of width 1.25 Any help is much appreciated. Thanks and regards, Ky Mathews [[alternative HTML version deleted]]
2017 Aug 10
1
"Help On optim"
...e function I selected for my problem is optim.* *Below is my code * *l = 2 # represent the number of mixture component* *i=1# represent the segment 1 if i=2 represent the 2 segment* *parametersDf #which I have posted above* *xnorm= function(x)* *{ * * #observation= append(segment1, segment2)* * mu.vector = parametersDf[1:l] * * var.vector =parametersDf[(l+1):((2*l))]* * coeff.vector=parametersDf[(2*l+1):(3*l)]* * val_df=data.frame()* * sum_prob=0* * for (j in 1:l){* * val=(coeff.vector[i,j]*(dnorm(x,mu.vector[i,j],sqrt(var.vector[i,j]))))* * sum_prob=sum_prob+val* *...