Changeset 1267 for framspy/dissimilarity/density-distribution.py
- Timestamp:
- 07/05/23 18:42:59 (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
framspy/dissimilarity/density-distribution.py
r1266 r1267 232 232 233 233 def normalize(self, signature): 234 """Normalizes the signature values by dividing it by the sum ofelements.235 Args: 236 signature np.array(,dtype=float): array of signature values.237 238 Returns: 239 np.array(,dtype=float): array of normalized signature234 """Normalizes the signature values by dividing each element by the sum of all elements. 235 Args: 236 signature np.array(,dtype=float): A one-dimensional array of signature values. 237 238 Returns: 239 np.array(,dtype=float): A one-dimensional array of normalized signature values. 240 240 """ 241 241 total = np.sum(signature)
Note: See TracChangeset
for help on using the changeset viewer.