I just figured out that...
dividing all elements of a vector by a constant and then normalizing the
vector
...is the same as...
normalizing the vector and then dividing the answer (scalar) by the
constant
:-D
I want to change the code that calculate the variance in
AssociatedPairDataSetBuilder to return a scalar instead of a Vector that
has to be normalized. I also want to normalize the diffSquare Vector before
dividing it by the set's size. This should be faster, because we save one
division calculation per element. This will also simplify code in other
classes, because we don't have to call .norm() on the Vectors that are
returned then.
Alternatively, just add another method that returns a scalar and keep the
one that returns a Vector.
I'm putting this on the tracker so that I don't forget about it.
Gary Pampara
None
None
Public
|
Date: 2008-10-07 08:45 That is normalization, if that is what is required. |
|
Date: 2008-10-07 08:42 So you are wanting to create the unit vector of a vector? |
|
Date: 2008-10-07 08:41 I had a look at the class now. As is, the implementation is correct, that |
|
Date: 2008-10-07 08:22 That's currently the implementation in the Vector class. Ie: ||x|| = |
|
Date: 2008-10-07 08:16 Hi |
|
Date: 2008-10-07 08:03 There is definitely some confusion here. A normal vector is a vector of |
|
Date: 2008-10-07 07:54 Sorry, I clearly used the wrong terms. What I meant was: |
|
Date: 2008-10-07 07:45 I might misunderstand your statement. But if a vector is normalized then |
|
Date: 2008-05-22 08:11
|
|
Date: 2008-02-27 09:29
|
|
Date: 2007-12-22 03:20
|
|
Date: 2007-12-07 11:20
|
|
Date: 2007-11-22 05:47
|
|
Date: 2007-11-22 05:37
|
|
Date: 2007-11-22 05:34
|
|
Date: 2007-11-21 18:00
|
|
Date: 2007-11-21 16:14
|
| Field | Old Value | Date | By |
|---|---|---|---|
| close_date | 2008-10-07 06:18 | 2008-10-07 07:54 | heatzync |
| status_id | Closed | 2008-10-07 07:54 | heatzync |
| close_date | - | 2008-10-07 06:18 | gpampara |
| status_id | Open | 2008-10-07 06:18 | gpampara |
| status_id | Closed | 2008-05-22 08:11 | heatzync |
| close_date | 2008-02-27 09:29 | 2008-05-22 08:11 | heatzync |
| resolution_id | Later | 2008-02-27 09:29 | gpampara |
| status_id | Open | 2008-02-27 09:29 | gpampara |
| assigned_to | heatzync | 2008-02-27 09:29 | gpampara |
| close_date | - | 2008-02-27 09:29 | gpampara |
| close_date | 2007-12-22 03:20 | 2007-12-23 15:45 | gpampara |
| status_id | Closed | 2007-12-23 15:45 | gpampara |
| status_id | Pending | 2007-12-22 03:20 | sf-robot |
| close_date | 2007-12-07 11:20 | 2007-12-22 03:20 | sf-robot |
| resolution_id | None | 2007-12-07 11:20 | heatzync |
| status_id | Open | 2007-12-07 11:20 | heatzync |
| close_date | - | 2007-12-07 11:20 | heatzync |
| assigned_to | nobody | 2007-11-21 13:33 | heatzync |
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use