similar to: Taking the min of each row in a matrix

Displaying 20 results from an estimated 1000 matches similar to: "Taking the min of each row in a matrix"

2006 Jan 19
3
problems with migrations in sql server
Is anyone using migrations with a SQL Server database who might be able to lend me a hand? I''ve used migrations with MySql in the past and haven''t run into any issues so forgive When I run rake migrate nothing is actually getting updated in my database. I created a migration using ./script/generate migration AddFooTable and updated the migration to look as follows: class
2005 Oct 05
0
CVS won't compile: res_odbc error
Hi there, admittedly this is a slightly aged RH system. ;-> Yet what I'd like to know is if this compile problem is clearly due to the gcc version, or if there is a way to solve the issue...? Cheers, Philipp [root@box src]# gcc -v Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs gcc version 2.96 20000731 (Red Hat Linux 7.2 2.96-112.7.2) [root@box src]# rpm -q unixODBC
2007 Jan 23
11
dynamic tablenames
Hi List! May I tap into your combined common sense ? I have a legacy logging app that needs to be modernized. At the moment, Data is going to be stored in 5 tables, one table is going to contain more than 200 million and 2 others about 60 million rows. Mysql will be used, unless someone sees a major advantage in using something else (at the moment data is stored in a raw positioned file format,
2005 Oct 07
3
wifi phones - desk
Hi, I'm provisioning an office with limited cabling. I'm looking for a desk based wifi phone. Most of the ones I've seen are handsets. Any ideas? Thanks, WILL -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051007/1d2cc49a/attachment.htm
2004 Aug 17
2
Problems with DTMF
I've got a problem with DTMF, again. My asterisk box is connected with the outside world (PSTN) via a sip proxy. The problem is that for some reason, I need to use rfc2833 for signaling digits to the gateway and inband to accept digits from outside (eg. when someone dials one of our DIDs). It's possible to do this? I've ever tried splitting 'peer' and 'user' part in
2007 Nov 07
1
thumbnailer/swfdec-thumbnailer.c
thumbnailer/swfdec-thumbnailer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) New commits: commit a31d0686b78df2da96b9d8d1e3220e63978bba30 Author: Benjamin Otte <otte at gnome.org> Date: Wed Nov 7 20:02:04 2007 +0100 s/swfdec_player_get_image_size/swfdec_player_get_default_size/ diff --git a/thumbnailer/swfdec-thumbnailer.c b/thumbnailer/swfdec-thumbnailer.c index
2009 Aug 24
1
hdf5 package segfault when processing large data
Hi there, I am currently working on something that uses hdf5 library. I think hdf5 is a great data format, I've used it somewhat extensively in python via PyTables. I was looking for something similar to that in R. The closest I can get is this library: hdf5. While it does not work the same way as PyTables did, but it's good enough to let them exchange data via hdf5 file. There is just 1
2008 Jun 15
3
Delete Block of Rows
I am trying to delete a section of rows from a data frame (based on no condition). Lets say my data frame has 200 rows and I want to delete rows 1 through 25. How would I do this? I know x[ -1, ] deletes the first row (or any desired row). I tried using different variations of this, like x[ -c(1:25), ] but that didn't work. I also tried writting a few functions, for example: deleteRows
2006 Aug 14
4
Updating a table with Ajax
I''ve been banging my head against the wall trying to update a table (add/delete rows) using Ajax. It seems simple enough but just doesn''t work for me. I can get it to work using DIVs instead of a table, but doing the layout with DIVs is much more cumbersome and I know it works for others with a table (though I haven''t been able to find an exact example code anywhere).
2008 Nov 15
0
min of array
I wanted to get the minimum of an array of dimenstion (nr,nc,6), so the output was of dimension (nr,nc), ie for each row,column the minimum of 6 numbers. I thought apply might be the sensible way, but I also compared it to looping over each row/column. In this case the loop method was faster than my apply (which probably means I wasn't using apply in the best way). Then I found that pmin
2008 Apr 27
1
parallel max, min, and median of dataframe columns
Hello, all, I have a dataframe of three rows and umpteen columns. I want to show the maximum, minimum, and median with a vertical line and a central dot (I'd use a boxplot, but with only three data points, that's overkill; I can't just use points, because of overlap and some of the other data plotted on the graph). This works: > boxplot(data_frame,
2010 Apr 17
2
Please help with min()
Hello, I have two vectors of length = 10 x<-c(2,14,79,27,3,126,15,1,12,4) y<-rep(4,10) and I would like to create a third vector of length = 10 that contains the smallest value at each position in the two above vectors. I have tried: z<-min(x,y) but that doesn't work. With the example data above, the third vector would look like this. > z [1] 2 4 4 4 3 4 4 1 4
2008 Nov 06
2
comparing matrices using max or min
Dear all, I have 3 matrices with the same dimension, A,B,C and I would like to produce a matrix D where in each position would retrieve the max(or min) value along A,B,C taken from the same position. I guess that apply functions should fit, but for matrices objects I am not getting it. thanks in advance, Diogo André Alagador [[alternative HTML version deleted]]
2006 Mar 08
1
MSSQL error - 80004005 & Rails
hey there folks, i have a bit of a sitch here and i would love some help/input on it. i''ve inherited a horrible asp/mssql app that i''m re-writting using rails, but unfortunately i have to keep the asp version up and running. in order to do so i''ve had to write some admin functions, which i''ve done in rails. because the mssql schema wasn''t written
2008 Dec 09
2
Applying min to numeric vectors
I was surprised this morning, that it seems as though the min() function does not work as *I* anticipated when given vector arguments. For example: a <- 1:10 b <- c(rep(1, times=5), rep(10, times=5)) Result: > min(a,b) 1 What I actually wanted was a term by term minimum, i.e.: ifelse(a<=b, a, b) 1 1 1 1 1 6 7 8 9 10 Am I losing much in terms of computation power if I use
2014 Sep 25
1
HyperV (win2012) storage on Samba4
Hi, I'm trying to expose a linux share via Samba4 to serve as a VM backing store (storage) for HyperV VMs running on Win2012 R2 Standard server. The system details are: Intel(R) Xeon CPU. 64 bit operating system. I'm not sure if SMB3 is fully supported by Samba 4(codebase corresponds to "master" git branch). The VM deployment fails while trying to create *.vhdx file; the error
2009 Jan 27
1
Using R in a web application
Hi, I want to use R to do user-submitted jobs in a (java-based) webapp. Specifically, I want * users to upload R scripts * run the R job on user data * save the results to database I'm concerned about sandbox issues. * Is it possible to disable file read/write capability? * Can I prevent the user from loading packages (e.g. the database package). * Can I have users work on separate data
2009 Jul 24
2
How to find the min and max of two variables in a data frame
I have two variables in a data frame, I want to generate two additional variables. For every observations (i.e. every row), I want the first new variable 'min' to carry the minimum of the two existing variables, and I want the second new variable 'max' to carry the maximum of the two existing variables. I then want to sort the data frame by min and max, and delete duplicated rows
2006 Dec 13
2
why are my multiple box & whisker plots so small?
Hi all, I'm sure this is reallly basic, but I just can get it to work. I want to plot six box & whisker plots together to make one figure so that they appear one below the next. I can do this using >par(mfrow=c(6,1)), but each box&whisker plots end up vertically compressed to the point where I can't see the actual bars, and there is a large amount of white space between each
2005 Oct 14
2
"Please Press Any Key to Accept a Call"
Hi, I'd like to add a feature to my asterisk system that tries to find a user among a couple of locations, and then goes to internal voicemail if the user doesn't pick up. (e,g, an internal extension and a cell phone). The catch is that I want the user to manually accept the call to prevent it from going (for example) to the voice mail on my cell phone. Scenario * Call comes in,