你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 15:10:13 +08:00
Corrections to differencing fitness function.
这个提交包含在:
@@ -135,6 +135,7 @@ def fitness_diffs(filename, args):
|
|||||||
nrx = f.attrs['nrx']
|
nrx = f.attrs['nrx']
|
||||||
|
|
||||||
diffdB = 0
|
diffdB = 0
|
||||||
|
outputs = 0
|
||||||
for rx in range(1, nrx + 1):
|
for rx in range(1, nrx + 1):
|
||||||
tmp = f['/rxs/rx' + str(rx) + '/']
|
tmp = f['/rxs/rx' + str(rx) + '/']
|
||||||
if tmp.attrs['Name'] in args['outputs']:
|
if tmp.attrs['Name'] in args['outputs']:
|
||||||
@@ -144,8 +145,9 @@ def fitness_diffs(filename, args):
|
|||||||
tmp = 20 * np.log10(np.abs(modelresp - refresp) / np.amax(np.abs(refresp)))
|
tmp = 20 * np.log10(np.abs(modelresp - refresp) / np.amax(np.abs(refresp)))
|
||||||
tmp = np.abs(np.sum(tmp[-np.isneginf(tmp)])) / len(tmp[-np.isneginf(tmp)])
|
tmp = np.abs(np.sum(tmp[-np.isneginf(tmp)])) / len(tmp[-np.isneginf(tmp)])
|
||||||
diffdB += tmp
|
diffdB += tmp
|
||||||
|
outputs += 1
|
||||||
|
|
||||||
return diffdB
|
return diffdB / outputs
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
在新工单中引用
屏蔽一个用户