Ok so this is what i have done so far. Please notify if you see any errors
/*Declare Variables*/
/* Stores the counts FOR each row FOR 1, 0 and -1 */
float RowCounts[MAX_ROWS][MAX_COUNTS];...
Type: Posts; User: sammells
Ok so this is what i have done so far. Please notify if you see any errors
/*Declare Variables*/
/* Stores the counts FOR each row FOR 1, 0 and -1 */
float RowCounts[MAX_ROWS][MAX_COUNTS];...
hey guys if i have a data file called "data" for instance. which had 15 cols and 15 rows. if each cell had a number assigned to it (1,0,-1) and i wanted to count how many 1's, 0's and -1's are in...
ok so initially we were given a data file with an array of a known size. for me [21][19]. from there we had to determine the median value for each row and column. to do so we had to sort the data...
would you like me to include the entire code, and the excel file with the raw data in it?
Hey guys, I have an array or [21]rows and [19]cols. Each row and column have the numbers -1,0,1 scattered randomly throughout the array from what was a medianmap. Now i want to calculate the counts...
oh mate i follow you now, totally forgot about indices beginning from 0. lifesaver!
So for an odd number of rows/columns as i know i have..
my code is as follows
FOR ROWS:
if ((MAX_ROWS % 2) == 1)
{
MedianIndex1 = ((MAX_ROWS + 1) / 2);
}
i understand what your saying but i think my code produces what you are saying.
so for both cols and rows. the median index is (MAX_COLS + 1) / 2
thanks Andipersti, so how would i write this?
do i need to create another index?
I am trying to compile the following code (printf), as i know there is an odd number of columns.
if ((MAX_ROWS % 2) == 1)
{
/* get the middle index */
MedianIndex1 =...
Hey thanks, i am new and will do so from now on.
I am allowing the code to determine for both odd and even columns/rows so i can go back later and do even number of rows/columns.
I know that in...
Hey guys, im currently writing code to determine the median for a data set. It is a very basic style of C coding as I have just recently begun playing around with it.
I am getting this error...