linux (gentoo) - should be the same for any unix variant yes?
Type: Posts; User: elninio
linux (gentoo) - should be the same for any unix variant yes?
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)?
weka is in java. What do you think of R statistical programming language (its based on S)?
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...
Thank you.
For example;
int func (int someval){
if (someval == 3) {
// make int main return 0;
}
return 0;
}
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.
Your right - I'm investigating...
I guess its pure luck that its worked at all for single values?
THATS WHAT I'VE BEEN DOING! BUT IT DOESN'T WORK!!!! AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH!!
That was the whole point of this thread.
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....
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...
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.
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]
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.
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.
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...
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
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.
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...
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...
I was referring to pointers as the possible pointers that exist within the vector or map class during its operation.
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>...
what is the g++ parameter for iso c++03? I don't think there is one (according to the man page).
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...
I've added more information.