Search:

Type: Posts; User: sammells

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    1,071

    Ok so this is what i have done so far. Please...

    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];...
  2. Replies
    4
    Views
    1,071

    Help Counting Elements in an Array

    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...
  3. Replies
    6
    Views
    1,168

    ok so initially we were given a data file with an...

    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...
  4. Replies
    6
    Views
    1,168

    would you like me to include the entire code, and...

    would you like me to include the entire code, and the excel file with the raw data in it?
  5. Replies
    6
    Views
    1,168

    Counting Elements in an Array

    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...
  6. Replies
    15
    Views
    6,216

    oh mate i follow you now, totally forgot about...

    oh mate i follow you now, totally forgot about indices beginning from 0. lifesaver!
  7. Replies
    15
    Views
    6,216

    So for an odd number of rows/columns as i know i...

    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);
    }
  8. Replies
    15
    Views
    6,216

    i understand what your saying but i think my code...

    i understand what your saying but i think my code produces what you are saying.
  9. Replies
    15
    Views
    6,216

    so for both cols and rows. the median index is...

    so for both cols and rows. the median index is (MAX_COLS + 1) / 2
  10. Replies
    15
    Views
    6,216

    thanks Andipersti, so how would i write this? ...

    thanks Andipersti, so how would i write this?
    do i need to create another index?
  11. Replies
    15
    Views
    6,216

    I am trying to compile the following code...

    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 =...
  12. Replies
    15
    Views
    6,216

    Hey thanks, i am new and will do so from now on....

    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...
  13. Replies
    15
    Views
    6,216

    C Coding Help: Unreachable Code

    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...
Results 1 to 13 of 13