摘要:
#include <iostream> #include <vector> #include <cstddef> #include <string> #include <sstream> #include <fstream> #include <algorithm> #include <cmath> 阅读全文
摘要:
template <class T> double VectorMedian(std::vector<T> &In) { std::sort(In.begin(), In.end()); if(In.size() % 2 == 0) { return 0.5*(In.at(In.size()/2)+ 阅读全文
摘要:
{ if(NF==1 && $0~/192.168/) host_name = $0 for(i=1;i<NF;++i) { if($i~/192.168/) { split($i, a, "=") printf("%s, %s\n", host_name, a[2]) } } } 原始数据: 19 阅读全文
摘要:
#!/usr/bin/ksh touch hostinfo$(date +%Y%m%d).csv filename=hostinfo$(date +%Y%m%d).csv >${filename} for ip in $(cat iplist); do SYSTEM=`ssh -q ${ip} un 阅读全文
摘要:
Many linear parametric models can be re-cast into an equivalent 'dual representstion' in which the predictions are also based on linear combinations o 阅读全文
摘要:
Newton's method is primarily a method for finding the zeros of a function, say f(w), that is, a method for finding solutions to the equation f(w)=0. T 阅读全文
摘要:
#!/usr/bin/python # -*- coding: UTF-8 -*- import pandas as pd import os if __name__ == '__main__': Folder_Path = 'c:\data1' os.chdir(Folder_Path) file 阅读全文