This topic describes the computing logic of resource usage comparison.
The following figure shows the computing logic of resource usage comparison.
The resource usage feature uses the following method to check whether similar users
exist:
- If similar users exist, all data of the similar users is computed.
If the Euclidean distance of the resource specifications of two users is less than 0.2, they are similar users. Otherwise, they are non-similar users. For example, User 1 has Instance A and Instance B, with Specification A and Specification B, respectively. The percentage of Instance A is 0.2 and the percentage of Instance B is 0.8. User 2 has Instance C and Instance D, with Specification A and Specification B, respectively. The percentage of Instance C is 0.6 and the percentage of Instance D is 0.4. User 3 has Instance E and Instance F, with Specification A and Specification B, respectively. The percentage of Instance E is 0.25 and the percentage of Instance F is 0.75.
- Formula: Euclidean distance = = 0.5657, which is greater than 0.2. In this case, User 1 and User 2 are non-similar users.
- Formula: Euclidean distance = = 0.0707, which is less than 0.2. In this case, User 1 and User 3 are similar users.
- If no similar users exist, all data of the users is computed.