search for: lgth

Displaying 5 results from an estimated 5 matches for "lgth".

Did you mean: gth
2014 May 14
1
large integer values
Dear devels, I need to create a (short) vector in C, which contains potentially very large numbers, exponentially to the powers of 2. This is my test example: lgth = 35; int power[lgth]; power[lgth - 1] = 1; for (j = 1; j < lgth; j++) { power[lgth - j - 1] = 2*power[lgth - j]; } Everything works ok until it reaches the limit of 2^32: power: 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 104...
2002 Oct 25
1
reshape: duplicate rows to multiple cols
I have a dataframe that I'm trying to reshape, and need advice. My data: > klam.merge[200:225,] stream lulc x sumlength pct.lgth 200 1223030419685 92 0.25000000 9.89 2.52780586 201 1223030419686 23 0.00274154 4.73 0.05796068 202 1223030419686 41 0.75009917 4.73 15.85833341 203 1223030419686 42 2.65000000 4.73 56.02536998 204 1223030419686 43 0.11715929 4.73 2.47694058 205 1223030419686...
2010 Apr 01
2
Adding regression lines to each factor on a plot when using ANCOVA
...group to which it belongs. I've provided an example with dummy data below best, Steve # =========================================================== # hypothetical data species <- c(1,1,1,2,2,2,3,3,3,3,4,4,4,5,5,5,5,6,6,6,7,7,7,8,8,8,8,9,9,9,9,9,10,10,10,11,11,11,11,12,12,12,12,12) beak.lgth <- c(2.3,4.2,2.7,3.4,4.2,4.8,1.9,2.2,1.7,2.5,15,16.5,14.7,9.6,8.5,9.1,9.4,17.7,15.6,14,6.8,8.5,9.4,10.5,10.9,11.2,11.5,19,17.2,18.9,19.5,19.9,12.6,12.1,12.9,14.1,12.5,15,14.8,4.3,5.7,2.4,3.5,2.9) mass <- c(45.9,47.1,47.6,17.2,17.9,17.7,44.9,44.8,45.3,44.9,39,39.7,41.2,84.8,79.2,78.3,82.8,102....
2008 Nov 25
2
calculating an N50
Given a set of integers of different values how do I calculate the minimum number of the largest of integers that are required, when summed, to equal 50% of the total sum of the the set? For example, > length(myTable$lgth) [1] 303403 > sum(myTable$lgth) [1] 4735396 I know through brute force that the N50 of the following set is 42 but I don't know how to solve this without iteration > sum(myTable$lgth[which(myTable$lgth>=42)]) [1] 2374260
2007 May 23
0
rsync files differ
...236 at 669939 Dec 11 2002 /data/DWG//E/0090/01/20046784E.a LGAS 152479055 669939 -rw-rw-rw- 236 at 669939 Dec 11 2002 /data/DWG//E/0090/01/20046784E.a LGGO 2551689890 669939 -rw-rw-rw- 236 25 669939 Dec 11 2002 /data/DWG//E/0090/01/20046784E.a LGTH 152479055 669939 -rw-rw-rw- 236 25 669939 Dec 11 2002 copied with: /usr/local/bin/rsync --rsh=rsh --rsync-path=/usr/local/bin/rsync -zpogctS /data/DWG//E/0090/01/20046784E.a [Server]:/data/DWG//E/0090/01/20046784E.a on LGGO the file is different (see cksum) if I copy it back...