Skip to Main Content
算法技术手册(原书第2 版)
book

算法技术手册(原书第2 版)

by George T.Heineman, Gary Pollice, Stanley Selkow
August 2017
Intermediate to advanced content levelIntermediate to advanced
360 pages
8h 35m
Chinese
China Machine Press
Content preview from 算法技术手册(原书第2 版)
336
附录
A
#
计算平均值和标准方差。
RES=`cat $RESULTS | $CODE/eval`
echo "$b $RES"
rm -f $RESULTS
done
compare.sh
脚本使用一个短小的
C
程序
eval
计算平均值和标准方差。例
A-5
是一个
管理脚本
suiteRun.sh
,这个脚本用于加载配置文件,然后解析配置文件并且多次运行
compare.sh
脚本。
A-5
suiteRun.sh
测试脚本
#!/bin/bash
CODE=`dirname $0`
#
如果没有参数就使用默认配置文件。
if [ $# -eq 0 ]
then
CONFIG="config.rc"
else
CONFIG=$1
echo "Using configuration file $CONFIG..."
fi
# export
以便
compare.sh
能够使用。
export CONFIG
#
解析信息。
if [ -f $CONFIG ]
then
BINS=`grep "BINS=" $CONFIG | cut -f2- -d'='`
TRIALS=`grep "TRIALS=" $CONFIG | cut -f2- -d'='`
LOW=`grep "LOW=" $CONFIG | cut -f2- -d'='`
HIGH=`grep "HIGH=" $CONFIG | cut -f2- -d'='`
INCREMENT=`grep "INCREMENT=" ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

机器学习实战:基于Scikit-Learn、Keras 和TensorFlow (原书第2 版)

机器学习实战:基于Scikit-Learn、Keras 和TensorFlow (原书第2 版)

Aurélien Géron
Go语言编程

Go语言编程

威廉·肯尼迪
C++语言导学(原书第2版)

C++语言导学(原书第2版)

本贾尼 斯特劳斯特鲁普

Publisher Resources

ISBN: 9787111562221