1、修复了<数据粗对齐>中计算互相关时因数据长度过大而导致错误从而无法计算的问题
This commit is contained in:
@ -1020,7 +1020,7 @@ class Data:
|
||||
# 将序列分成一百份来计算
|
||||
for i in range(100):
|
||||
tho_relate[i * len_calc // 100:(i + 1) * len_calc // 100] = Data.get_Correlate(a, v, array(
|
||||
[i * len_calc // 100, (i + 1) * len_calc // 100]))
|
||||
[i * len_calc // 100, (i + 1) * len_calc // 100], dtype=int64))
|
||||
tho_relate = tho_relate / 10000
|
||||
tho_relate2 = - tho_relate
|
||||
|
||||
@ -1046,7 +1046,7 @@ class Data:
|
||||
# 将序列分成一百份来计算
|
||||
for i in range(100):
|
||||
abd_relate[i * len_calc // 100:(i + 1) * len_calc // 100] = Data.get_Correlate(a, v, array(
|
||||
[i * len_calc // 100, (i + 1) * len_calc // 100]))
|
||||
[i * len_calc // 100, (i + 1) * len_calc // 100], dtype=int64))
|
||||
abd_relate = abd_relate / 10000
|
||||
abd_relate2 = - abd_relate
|
||||
|
||||
@ -1087,7 +1087,7 @@ class Data:
|
||||
return Result().success(info=Constants.APPROXIMATELY_EPOCH_GET_FINISHED, data=result)
|
||||
|
||||
@staticmethod
|
||||
@njit("int64[:](int64[:],int64[:], int32[:])", nogil=True, parallel=True)
|
||||
@njit("int64[:](int64[:],int64[:], int64[:])", nogil=True, parallel=True)
|
||||
def get_Correlate(a, v, between):
|
||||
begin, end = between
|
||||
if end == 0:
|
||||
|
||||
Reference in New Issue
Block a user