search for: h2

Displaying 20 results from an estimated 615 matches for "h2".

Did you mean: h2c
2007 Sep 22
4
anchor names from headers (Setext and atx)?
It would be useful if defining headers (either Setext and atx style), if Markdown would also generate corresponding anchors: ## This is an H2 ## would create: <a name="This is an H2"/> <h2>This is an H2</h2> Or something like that. Or is that available some different way? Thanks, Jeremy C. Reed
2008 Dec 26
1
histogramm$density
hello, i am using the hist function with classified values. The class breaks are >1, so histogram$density is != 1. How to plot the histogram with freq=FALSE and the real class density values. I used: > h2 = hist(value, breaks = breaks_vector) > h2$density = round(h2$counts/sum(h2$counts), 2) > h2$intensities = h2$density > plot(h2, freq=F) but this isn't the best way, i think. Also i would like to add the density function line with > lines(density(value) but of course it doesn...
2005 Jun 30
0
vecortizing uniroot() for numerical solutions
# Hi All, # # I need to solve a somewhat complex equation at many parameter values for # a number of different parameters. # A simplified version of the equation is: 0= (d1/(h1^2))-(h2*(d2^2)) # I'd like to solve it across a parameter space of d1 and d2, holding # h1 and h2 constant. # It seems that uniroot() can do it, but I don't see how to vectorize it. # This works just fine: R12 = function(d1, d2, h1, h2) (d1/(h1^2))-(h2*(d2^2)) uniroot(R12, interval...
2010 May 11
2
Can not restore domain from a shared state file
Hi, I have two KVM host: h1 and h2, both of them mount an NFS directory as a shared storage. I can save (virsh save <domain> <file>) a domain in h1 to a state file in the shared storage successfully, but failed to restore it from h2 with the following error message: # virsh restore testRes.dat error: Failed to restore do...
2012 Jul 03
5
Is it possible to remove this loop? [SEC=UNCLASSIFIED]
Hi all, I would like create a new column in a data.frame (a1) to store 0, 1 data converted from a factor as below. a1$h2<-NULL for (i in 1:dim(a1)[1]) { if (a1$h1[i]=="H") a1$h2[i]<-1 else a1$h2[i]<-0 } My question: is it possible to remove the loop from above code to achieve the desired result? Thanks in advance, Jin Geoscience Australia Disclaimer: This e-mail (and files transmitte...
2002 Dec 27
2
RSvgDevice & sapply(plotmeans)
Hi, anybody know why this not works for several plots ? When i set onefile=T the plots are stacked one about another , onefile=F only the first plot is shown in AllbusMeansPlots.svg. [h2 is a data.frame] ......hist and sapply works for several plots nice with RSvgDevice ! Maybe setting the title after apply is a problem, but until yet i didn't found a better solution ? library(RSvgDevice) library(gregmisc) devSVG(file = "AllbusMeanPlots.svg", width = 10, height = 8,...
2003 Sep 25
1
apply on a 4D array
I am trying to multiply a 3D array of 4x4x4 by the 4 3D arrays of a 4D array with dimensions 4x4x4x4 (the last dimension being the one that I want to split by). (4x4x4 array) > hiaAry , , a1 i1 i2 i3 i4 h1 9.5936098 6.001040 0.08772 0.3138600 h2 1.2003500 1.454570 2.79248 0.0000000 h3 0.1346500 0.201220 0.39256 0.5464000 h4 0.0109000 0.012270 0.16417 0.2766900 , , a2 i1 i2 i3 i4 h1 195.08275 74.23508453 39.23165 14.89689 h2 1.80127 7.41649055 6.97972 2.77784 h3 0.00000 0.27444002 0.77353 6.10322 h...
2008 Mar 12
3
undefined method `each' for #<Usrecart:0x46d1678>
I have the an error such as undefined method ''each'' pls can any one find the error from the code given below <center><%=@b%></center> <center><h2>WELCOME IN YOUR PROFILE</h2> <%@usercart=Usrecart.find_by_user_id(@b)%> <%if @usercart.blank?%> <br> <br> <br> <br> <h2>THERE IS NO PRODUCT</h2> <%end%> <%if !@usercart.blank?%> <% for u in @usercart %>...
2007 Jul 15
1
NNET re-building the model
...g = 0.1, decay = 5e-4, maxit = 5000,linout=TRUE) X is (m x n) Y is (m x 1) And then I get the coeficients by: Wts<-coef(mts) b->h1 i1->h1 i2->h1 i3->h1 i4->h1 i5->h1 i6->h1 i7->h1 ... b->o h1->o h2->o h3->o h4->o ... I understood that I should get the predicted Y (hat(Y)) by: hat(Y)= (b->o)+((b->h1)sum(X[,1:m]*Wts[i1:m-h1]+X[,1:m]*Wts[i1:m-h2]+...+X[,1:m] *Wts[i1:m-h4]))*(h1->o)+ ((b->h2)sum(X[,1:m]*Wts[i1:m-h2]+X[,1:m]*Wts[i1:m-h2]+...+X[,1:m]*Wts[i1 :...
2005 Feb 25
1
data set changes
Hi all, Here's my story. I have 3 hosts, 1 remote and 2 local. We'll say for the sake of clarity that h1 is remote and h2 is the local rsync pull host and h3 is also a local host on the net. Using rsync, I want to pull a data set first from h1 to both h2 and h3. The first pull copies all the data from h1 to h2 and h3. OK, that gives me a baseline of the data on both h2 and h3. Now h3 is taken off the network an...
2011 Jul 14
1
SQldf with sqlite and H2
SQldf with sqlite and H2 I have a large csv file (about 2GB) and wanted to import the file into R and do some filtering and analysis. Came across sqldf ( a great idea and product) and was trying to play around to see what would be the best method of doing this. csv file is comma delimited with some columns having comma in...
2010 Nov 09
0
convergence message & SE calculation when using optim( )
...s that I wanna express the lambda coefficient, in the passion likelihood function, as a linear function of other covariates (and thus of other coefficients). The codes that I am using (except data frame) are the following (FYI the parameters need to be positive): myfun <- function(coeff, H1, H2, p, Range) { (coeff[1]+coeff[2]*H1+coeff[3]*H2+coeff[4]*p+H1*Range*coeff[5]+H2*Range* coeff[6]+H1*H2*coeff[7])*exp((coeff[8]+coeff[9]*H1+coeff[10]*H2+coeff[11 ]*p+H1*Range*coeff[12]+H2*Range*coeff[13]+H1*H2*coeff[14])*(Range-1))+co eff[15]+coeff[16]*H1+coeff[17]*H2+coeff[18]*p+H1*Range*coeff[19...
2005 Dec 19
4
has_one, the = operator and validates_associated
Dear readers, I am puzzles by the following, imagine models A and B. A has_one B and B belongs_to A. So far so good. But rails does this great thing by relfecting on this relationship and enables me use the equals sign to do A.B=B. But now comes the puzzlement. Whenever you do this B is supposed to be saved (see,
2025 May 06
1
Recommend/clarify in ?utils::news that h2/h3 markdown hierarchy is preferable to h1/h2
...ce, but I haven't seen anything suggesting those exceptions definitely apply for R package NEWS files. Anyway, utils::news _is_ perfectly happy with NEWS files using `##` and `###` instead [5]; this is documented in an internal comment [6]. Is there an argument against (1) directly advocating h2/h3 usage in ?utils::news; or, more softly, (2) documenting that any (L,L+1) pair, 1<=L<=5, where 'L' gives version numbers as described, will be accepted when producing the news database? Note that doing so is perfectly back-compatible -- we needn't change the code at all, only it...
2006 Apr 25
4
redcloth poblems
Hi, I''m having some problems with redcloth(3.0.4 gem) and textilize. I have a string: "h2. hello _what''s up?_" which is being textilized as: <h2>hello<br /> <em>what&#8217;s up?</em></h2> so no paragraph and h2 wrapped all the way. the input is coming from firefox 1.5.2 on a mac Anybody got any idea what the problem might be? -- I d...
2017 Mar 20
1
Fwd: Possible memory problems with mallloc when called with .C()
...nst void *a, const void *b) { return (*(double*)a - *(double*)b); } double superior(double x, double i, double m){ double op1 = r_abs(x-(i)/(m)); double op2 = r_abs(x-(i-1)/(m)); return max(op1,op2); } double termino1, termino2, f, g, t, h1, h2, l=1.0, m=n-k; unsigned long int i, j, filas; double **matrixA, **matrixB; matrixA = (double **) malloc((k+1)*sizeof(double *)); matrixB = (double **) malloc((k+1)*sizeof(double *)); for (i=0; i <= k; i++) { matrixA[i] = (double *) malloc(n*sizeof(double)...
2009 Jan 24
1
Rails sanitize method is stripping my anchors
Hi, I have some html pages that are saved in DB and which require anchors for quickly jumping inside the page. People can edit the page manually, so in order to keep things clean I use Rails sanitize method to clean the html before output. The problem is that it is stripping my anchors. e.g: <h2 id=''team''>Our Team</h2> becomes <h2>Our Team</h2> How can I prevent sanitize from stripping the anchors? I have added "h2 id'' to config.action_view.sanitized_allowed_tags but it did not work. -- Posted via http://www.ruby-forum.com/. --~--~---...
2005 Oct 16
1
blindup and blindup confusion
here''s a basic question. i have an h2 element and i want onmouseover to show a div using blinddown; i also expect onmouseout of the mentioned div (but not h2) to have effect blindup to get rid of the div. so i set up: <h2 id = "show" class="show">Show div</h2> <div id = "out" class = &...
2025 May 12
1
Recommend/clarify in ?utils::news that h2/h3 markdown hierarchy is preferable to h1/h2
...t seen anything suggesting those exceptions > definitely apply for R package NEWS files. > Anyway, utils::news _is_ perfectly happy with NEWS files using `##` > and `###` instead [5]; this is documented in an internal comment [6]. > Is there an argument against (1) directly advocating h2/h3 usage in > ?utils::news; or, more softly, (2) documenting that any (L,L+1) pair, > 1<=L<=5, where 'L' gives version numbers as described, will be > accepted when producing the news database? Note that doing so is > perfectly back-compatible -- we needn't change the...
2006 Apr 19
4
Weird Problem - probably a noob mistake
...39;'layouts/singlepanel'' def index @bio = Bio.find(:all, :conditions => [''site_id = ?'', @session[''site''].id]) render ''bio/index'' end end However when I attempt to display the data in the view using this: <h2> <%=@bio.name%> </h2> I get an error: undefined method `name'' for #<Array:0x3892618> Here is the strange part: 1) I saved @bio to the session and looked at the contents and it all appears to be ok. 2) If I change @bio = Bio.find(:all, :conditions => [''s...