000
★R&J★ロミジュリ★-123
+本文表示
おかえりなさいませジュリエット
073
if __name__ == '__main__':
X, n, meanSt, sgmSt, fout, nm_fout = InputData()
NSimu = 1000
params = {'jump' : 0,
'n' : n,
'X' : X,
#
# Adjust the parameters in MCMC
#
istep = 0
while True:
print("\nStep-{} started.".format(istep))
Mu, Sgm, cnt_mu, cnt_sgm = mcmcFunc( params )
sum_mu = 0.0
sum_sgm = 0.0
sum_mu += Mu[t]
sum_sgm += Sgm[t]
params['initMu'] = sum_mu / NSimu
params['initSgm'] = sum_sgm / NSimu
print("meanMu = {}".format(params['initMu']))
print("meanSgm = {}".format(params['initSgm']))
074
ck_cnt = 0
r_mu = cnt_mu / NSimu
print("r_mu = {}".format(r_mu))
v, ck_cnt = scale_sgm( r_mu, ck_cnt )
params['genSgmMu'] = params['genSgmMu'] * v
print("genSgmMu = {}".format(params['genSgmMu']))
r_sgm = cnt_sgm / NSimu;
print("r_sgm = {}".format(r_sgm))
v, ck_cnt = scale_sgm( r_sgm, ck_cnt )
params['genSgmSgm'] = params['genSgmSgm'] * v
print("genSgmSgm = {}".format(params['genSgmSgm']))
print("ck_cnt = {}".format(ck_cnt))
if ck_cnt == 0:
break
istep += 1
#
# The main MCMCs
#
075
NSimu = 3000
params['NSimu'] = NSimu
n_mcmc = 4
ary_params = []
for i in range(0, n_mcmc):
temp = params.copy()
temp['jump'] = i + 1
ary_params.append(temp)
print("\nThe main MCMCs started.")
pool = Pool()
results = pool.map(mcmcFunc, ary_params)
print("\nThe main MCMCs ended.")
mrg_C1 = []
mrg_Mu = []
mrg_sgm += temp_Sgm[1:NSimu + 1]
print("Length(mrg_C1) = {}".format(len(mrg_C1)))
print("Length(mrg_Mu) = {}".format(len(mrg_Mu)))
print('Length(mrg_C2) = {}'.format(len(mrg_C2)))
print("Length(mrg_sgm) = {}".format(len(mrg_sgm)))
mrg_C1.sort()
mrg_Mu.sort()
mrg_C2.sort()
mrg_sgm.sort()
076
// IP Assignment
private String getIpAssignment (WifiConfiguration wifiConf) {
return getEnumField(wifiConf, "ipAssignment");
}
// IP Address Get
private String getIpAddress (WifiManager wifiMng) {
int nIPAddress = wifiMng.getConnectionInfo().getIpAddress();
return ((nIPAddress >> 0) & 0xFF) + "." + ((nIPAddress >> 8) & 0xFF) + "."
+ ((nIPAddress >> 16) & 0xFF) + "." + ((nIPAddress >> 24) & 0xFF);
}
077
// Wi-Fi Setting Get
private void getWifiConfig (WifiConfiguration wifiConf) {
// IP AssignmentSettingGet
String strIpAssignment = getIpAssignment(wifiConfiguration);
// IP Address Get
String strIpAddress = getIpAddress();
// Gateway Get
String strGateway = getGateway(wifiConfiguration);
// DNS Get
String strDNS = getDNS(wifiConfiguration);
}
078
>>77
SET CHLAUTH('channel-name') TYPE(ADDRESSMAP) ADDRESS('client-machine-IP-address') +
MCAUSER('non-privileged-user-id')
079
連絡取れなくするのは卑怯じゃない?
見てたらわかるよね?
暴露していいって言ってたけど全部書いていいの?
080
本人もde日記ほすらぶ書いていいと言っていたので書きますね
081
掛け漏れたのにナンバー反映されてよかったね
082
※このスレッドのコメントはこれ以上投稿できません。