Displaying 3 results from an estimated 3 matches for "sortedindices".
2004 Aug 12
4
truly object oriented programming in R
...ding box
private double diameter; //maximum distance from center to
anywhere within the bounding box
private int numOfPoints; //number of source data points in the
bounding box
private Kdnode left, right;
public Kdnode(double[][] points, int split_dim, int [][]
sortedIndices, double[][] bBox) {
//bBox: the bounding box, 1st row the lower bound, 2nd row
the upper bound
numOfPoints = points.length;
int d = points[0].length;
center = new double[d];
for(int j=0; j<d; j++) center[j] =
(bBo...
2004 Aug 12
9
Giving a first good impression of R to Social Scientists
Dear all,
in the coming Winter Semester, I will be a teaching assistant for a course
in Survival Analysis. My job will be to do the lab sessions. The software
used for these lab sessions will be R. Most of the students have a
background in social sciences and the only stats package they used so far is
most likely SPSS.
So I assume they might be quite surprised the first time they see R
2004 May 20
2
column sorting a matrix with indices returned
Hi,
I'm trying to translate some Matlab code to R and I'm trying to
implement the behavior of Matlab's sort() which when applied to a matrix
will sort the columns returning the column sorted matrix as well as a
matrix of permuted indices.
Doing:
> x <- matrix(c(3,4,2,6,3,4,8,7,5), nr=3)
> x
[,1] [,2] [,3]
[1,] 3 6 8
[2,] 4 3 7
[3,] 2 4 5