JOIN
Get Time
forums   
Search | Watch Thread  |  My Post History  |  My Watches  |  User Settings
View: Flat  | Threaded  | Tree
Previous Thread  |  Next Thread
something about scale(int c) | Reply
void scale(int c){
for (int i = 1 ; i <= MaxVal ; i++)
update(-(c - 1) * readSingle(i) / c , i);
}
I think this function maybe like this:
void scale(int c){
for (int i = 1 ; i <= MaxVal ; i++)
update(i, -(c - 1) * readSingle(i) / c);
}
becsuse the function update() is defined: update(int idx, int val) above in the article.
Subject Author Date
something about scale(int c) Qili Sep 2, 2012 at 5:55 AM EDT
RSS