Search:

Type: Posts; User: laserlight

Search: Search took 0.38 seconds.

  1. Replies
    8
    Views
    4,885

    Suppose there is such an overhead: does it affect...

    Suppose there is such an overhead: does it affect you? In other words, does the use of sqrt() cause your program to fail its performance requirements?


    Better than your own? Probably. Better than...
  2. Replies
    8
    Views
    4,885

    No problem :) By the way, I would suggest that...

    No problem :)

    By the way, I would suggest that you use a std::vector<StudentsGrades> instead of a fixed size array. This would make calculateVariance() more reusable (and in the future it would be...
  3. Replies
    8
    Views
    4,885

    You have a logic error though: !(A || B) = !A &&...

    You have a logic error though: !(A || B) = !A && !B, but you transformed it to !A || !B. The use of temporary variables can make the code much easier to read, e.g.,

    double...
  4. Replies
    8
    Views
    4,885

    I would initialise variance to 0.0. By the...

    I would initialise variance to 0.0.

    By the way, the if statement is pointless. You could make it useful by negating the condition and doing what's in the current else branch without doing what's...
Results 1 to 4 of 4