mdod 0.1.8__py3-none-any.whl → 1.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mdod
3
- Version: 0.1.8
3
+ Version: 1.0.0
4
4
  Summary: MDOD, Multi-Dimensional data Outlier Detection
5
5
  Home-page: https://github.com/mddod/mdod
6
6
  Author: Z Shen
@@ -13,5 +13,5 @@ Classifier: Programming Language :: Python
13
13
  Classifier: Programming Language :: Python :: 3
14
14
  License-File: LICENSE.txt
15
15
 
16
- Python library for Multi-Dimensional data Outlier/Anomaly Detection algorithm. For details please read README.md , or visit https://github.com/mddod/mdod
16
+ Python library for Multi-Dimensional data Outlier/Anomaly Detection algorithm. For details please read README.md , visit https://github.com/mddod/mdod, or https://mddod.github.io/
17
17
 
@@ -0,0 +1,5 @@
1
+ mdod-1.0.0.dist-info/LICENSE.txt,sha256=7ToR4JRGCu-ZhydtQcKP7V_h7tesBPP2RAoQM6lfwpk,1492
2
+ mdod-1.0.0.dist-info/METADATA,sha256=GT4fznTUtlmg9JNj2hQn5qMpG6SJgJ2PzDQ-76wfH3E,655
3
+ mdod-1.0.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
4
+ mdod-1.0.0.dist-info/top_level.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
5
+ mdod-1.0.0.dist-info/RECORD,,
@@ -0,0 +1 @@
1
+
mdod/__init__.py DELETED
@@ -1,5 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
-
3
- from .mdod import md
4
-
5
- __all__ = ['mdod']
mdod/mdod.py DELETED
@@ -1,59 +0,0 @@
1
- # -*-coding: utf-8- -*-
2
- #MDOD, Multi-Dimensional data Outlier Detection
3
- # Author: Z Shen<626456708@qq.com>
4
- # License: BSD 3-Clause License
5
-
6
- import numpy as np
7
-
8
- def md(dets0,nd,sn):
9
- VCS_list = []
10
- VCSResult_list = []
11
- i=0
12
- VCS_list.clear()
13
- for line0 in dets0:
14
- VCSTotal = 0
15
- DenominatorLeft = 0
16
- DenominatorRight = 0
17
- Numerator1 = 0
18
- Numerator2 = 0
19
- NumeratorPlus = 0
20
- DenominatorSum = 0
21
- NumeratorSum = 0
22
- VCSResult = 0
23
- j = 0
24
- VCSResult_list.clear()
25
- line0size=np.array(line0)
26
- for line1 in dets0:
27
- VCSResult = 0
28
- DenominatorLeft = 0
29
- DenominatorRight = 0
30
- Numerator1 = 0
31
- Numerator2 = 0
32
- NumeratorPlus = 0
33
- DenominatorSum = 0
34
- NumeratorSum = 0
35
- VCSResult = 0
36
- for k in range(0, (line0size.size), 1):
37
- DenominatorLeft = float(DenominatorLeft) + (float(str(line0[k]))-float(str(line0[k])))**2
38
- DenominatorLeft = float(DenominatorLeft) + (float(str(nd))-float(str('0')))**2
39
- DenominatorLeft = (float(DenominatorLeft)**0.5)
40
- for k in range(0, (line0size.size), 1):
41
- DenominatorRight = float(DenominatorRight) + (float(str(line0[k]))-float(str(line1[k])))**2
42
- DenominatorRight = float(DenominatorRight) + (float(str(nd))-float(str('0')))**2
43
- DenominatorRight = (float(DenominatorRight)**0.5)
44
- for k in range(0, (line0size.size), 1):
45
- NumeratorSum = NumeratorSum + (float(((float(str(line0[k]))-float(str(line0[k])))**2)**0.5) * float(((float(str(line0[k]))-float(str(line1[k])))**2)**0.5))
46
- NumeratorPlus = (float(((float(str(nd))-float(str('0')))**2)**0.5) * float(((float(str(nd))-float(str('0')))**2)**0.5))
47
- DenominatorSum = float(DenominatorLeft) * float(DenominatorRight)
48
- NumeratorSum = NumeratorSum + NumeratorPlus
49
- VCSResult = float(NumeratorSum)/float(DenominatorSum)
50
- VCSResult_list.append(VCSResult)
51
- VCSResult_list.sort(key=None, reverse=True)
52
- for j in range(1, sn):
53
- VCSTotal = VCSTotal + float(str(VCSResult_list[j]))
54
- VCS_list.append([VCSTotal, str(line0), str(i)])
55
- i = i + 1
56
- return VCS_list
57
-
58
-
59
-
@@ -1,7 +0,0 @@
1
- mdod/__init__.py,sha256=Za_ZM6LquGiu3NYA4UQORA-etiQKDfJ1asE7-SJlTNA,71
2
- mdod/mdod.py,sha256=d0jxlf9kCaCKSkQDIO2-i8ZHnRHzvSHu9_pLcVga7Cg,2400
3
- mdod-0.1.8.dist-info/LICENSE.txt,sha256=7ToR4JRGCu-ZhydtQcKP7V_h7tesBPP2RAoQM6lfwpk,1492
4
- mdod-0.1.8.dist-info/METADATA,sha256=2TGKk0_cbMBENv3YJtrbj-AGoZhBCPFNYFVFIkp36w4,630
5
- mdod-0.1.8.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
6
- mdod-0.1.8.dist-info/top_level.txt,sha256=wc3s5DwL33MzLW72ABBR4vg36euFZNFKFD51Og1hnAY,5
7
- mdod-0.1.8.dist-info/RECORD,,
@@ -1 +0,0 @@
1
- mdod
File without changes