Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Something wrong or I misunderstand? #5

Open
xyz198903 opened this issue Dec 5, 2018 · 0 comments
Open

Something wrong or I misunderstand? #5

xyz198903 opened this issue Dec 5, 2018 · 0 comments

Comments

@xyz198903
Copy link

for (int freq = LOWER_LIMIT; freq < UPPER_LIMIT - 1; freq++) {

Freq is inited to LOWER_LIMIT(40). Then, the index geted is 0 with the method
// Find out in which range
public int getIndex(int freq) {
int i = 0;
while (RANGE[i] < freq)
i++;
return i;
}
Just one point in section 0.

The reflection like:
0 : 40,
1 : 41-80,
2 : 81 - 120,
3 : 121 - 180,
4 : 181 - 300.
Is this a bug or I just misunderstand?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant