Search:

Type: Posts; User: elninio

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,168

    linux (gentoo) - should be the same for any unix...

    linux (gentoo) - should be the same for any unix variant yes?
  2. Replies
    3
    Views
    1,168

    memory statistics

    is there a header that i can use that will have functions which allow me to get stats on the system memory usage? (i.e how much memory is being used, how much memory is available)?
  3. Replies
    5
    Views
    3,241

    weka is in java. What do you think of R...

    weka is in java. What do you think of R statistical programming language (its based on S)?
  4. Replies
    5
    Views
    3,241

    image analysis theory: mapping a network

    Lets say you have a set of images and a set of image features, the image features are a huge set of various statistics performed on the image. You are trying to use image features to classify these...
  5. Replies
    46
    Views
    4,050

    Thank you.

    Thank you.
  6. return 0 to main from within a function, is this possible?

    For example;



    int func (int someval){
    if (someval == 3) {
    // make int main return 0;
    }
    return 0;
    }
  7. Replies
    46
    Views
    4,050

    I've tried making sure all the elements of...

    I've tried making sure all the elements of kFmap[k][namesmap[i]] are within the resize value of F, but that didn't fix things.
  8. Replies
    46
    Views
    4,050

    Your right - I'm investigating... I guess its...

    Your right - I'm investigating...

    I guess its pure luck that its worked at all for single values?
  9. Replies
    46
    Views
    4,050

    THATS WHAT I'VE BEEN DOING! BUT IT DOESN'T...

    THATS WHAT I'VE BEEN DOING! BUT IT DOESN'T WORK!!!! AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH!!

    That was the whole point of this thread.
  10. Replies
    46
    Views
    4,050

    I want F[kFmap[k][namesmap[i]]] = (...

    I want F[kFmap[k][namesmap[i]]] = ( F[kFmap[k][namesmap[i]]] / 10 );

    Divide the current value by 10, and replace the value that was just divided.

    Example:

    If F[kFmap[k][namesmap[i]]] = 40....
  11. Replies
    46
    Views
    4,050

    You're absolutely right. Whats the point in using...

    You're absolutely right. Whats the point in using at() then? I want to divide some number that fits in int, by 10.

    We can then do the mapping -- kFmap[0]["four"] = 20. 20/10 = 2. Thats what I...
  12. Replies
    46
    Views
    4,050

    k only looped from zero to one is completely...

    k only looped from zero to one is completely valid, because kFmap is only defined from 0 to 1. Whats the problem here?

    Look at the data types.
  13. Replies
    46
    Views
    4,050

    kFmap is a vector of maps: ...

    kFmap is a vector of maps:

    vector<map<string,int> > kFmap

    Its elements are defined for the following:

    kFmap[0][1]
    kFmap[0][2]
    kFmap[0][3]
    kFmap[0][4]
  14. Replies
    46
    Views
    4,050

    you never access F[10], F increments in terms of...

    you never access F[10], F increments in terms of k. so only 0 and 1 are accessed. We are accessing the kth element. Look at the K for loop, it only goes to < 2.
  15. Replies
    46
    Views
    4,050

    Yes, thats the whole point. kFmap is only defined...

    Yes, thats the whole point. kFmap is only defined from 0 to 1. The elements within its map are defined from 1 2 3 4. Valid again.
  16. Replies
    46
    Views
    4,050

    the ith elemeth of kFmap exists. I have two maps...

    the ith elemeth of kFmap exists. I have two maps of size 4 in it.

    I don't access kFmap[3] and [4] because the k for loop only goes up to 2.

    F.at(kFmap[k][namesmap[i]])++; , namesmap[i] goes...
  17. Replies
    46
    Views
    4,050

    The size 6 refers to the span of maps, 10 and 20...

    The size 6 refers to the span of maps, 10 and 20 are INSIDE the map, right?


    vector [ map1 map2 ...]
    5 5
    10 5
    5 5
    20 20
  18. Replies
    46
    Views
    4,050

    Not seeking to put blame on the compiler, just...

    Not seeking to put blame on the compiler, just hoping that maybe some newer standard could give me a warning about some bad practice which i may be doing that may be contributing to the problem.
  19. Replies
    46
    Views
    4,050

    What is the reasoning behind this? Can you tell...

    What is the reasoning behind this? Can you tell me about untrusted sources? I'd like to know how this stuff works...

    Edit: that didn't do it for me, I get vector::_M_range_check error. And when I...
  20. Replies
    46
    Views
    4,050

    Upon further research, it appears that c++99...

    Upon further research, it appears that c++99 isn't fully supported. Some of 03 is supported, but you still pass the 99 flag to it, and it says you can also use -pedantic but it won't tell you which...
  21. Replies
    46
    Views
    4,050

    I was referring to pointers as the possible...

    I was referring to pointers as the possible pointers that exist within the vector or map class during its operation.
  22. Replies
    46
    Views
    4,050

    I have simplified code to demonstrate my example,...

    I have simplified code to demonstrate my example, please feel free to extend it to wider sets.

    edit: fixed that annoying error message at the end.



    #include <iostream>
    #include <vector>...
  23. Replies
    46
    Views
    4,050

    what is the g++ parameter for iso c++03? I don't...

    what is the g++ parameter for iso c++03? I don't think there is one (according to the man page).
  24. Replies
    46
    Views
    4,050

    iso c++98 doesn't tell me anything. everything...

    iso c++98 doesn't tell me anything. everything works fine except for that one line, I have made sure that all the vals are in their right place, havent I? I've shown what the values of F are before...
  25. Replies
    46
    Views
    4,050

    I've added more information.

    I've added more information.
Results 1 to 25 of 108
Page 1 of 5 1 2 3 4