📄 readme
字号:
Statics.cc is a demo to illustrate how the communication between the COOOL library and a user-written objective function computation code is accomplished.In this example we maximize the stacking power objective function to find the optimum set of surface consistent residual statics. The dataset is in the file "data" and in this simple problem is formed by only 5 CMP gathers. The "xcor" file contains the necessarycrosscorrelation traces to compute the stacking power. The "optimum" statics for such a small data set are not significant.The objective of this example is to illustrate how the COOOL library works.The following codes are provided:OPTIMA: Unix shell to run the code.optima.cc: c++ code that performs the optimization using the conjugate gradient object of the COOOL library. The required derivatives of the objective function are computed numerically by the library. This code also illustrates how to use the "expect" mechanism for the communication of two Unix processes (the library and the objective function computation code).statics.cc: c++ (but didn't have to be c++) code that accepts a set of residual statics parameters from stdin and outputs the computed stacking power to stdout.Give it a try. Report any bugs and suggestions to Lydia Deng (hdeng@dix.mines.colorado.edu), Wences Gouveia (wgouveia@dix.mines.colorado.edu) and John Scales (jscales@dix.mines.colorado.edu). reminder: To make the code easier we used the cwp and su libraries, as specified in the Makefile. To run this demo you must have this libraries installed in your system.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -