This commit is contained in:
2025-07-16 14:06:31 +08:00
parent 31bcd2d2bf
commit 4e7f5eeb7a
92 changed files with 155 additions and 133 deletions

View File

@@ -25,8 +25,8 @@
* Also add information on how to contact you by electronic and paper mail.
******************************************************/
#include "../lib/core.h"
#include "../lib/io.h"
#include "gctl/core.h"
#include "gctl/io.h"
using namespace gctl;

View File

@@ -25,7 +25,7 @@
* Also add information on how to contact you by electronic and paper mail.
******************************************************/
#include "../lib/algorithm.h"
#include "gctl/math.h"
using namespace gctl;

View File

@@ -43,9 +43,9 @@
* along with libeemd. If not, see <http://www.gnu.org/licenses/>.
*/
#include "../lib/core.h"
#include "../lib/io.h"
#include "../lib/algorithm.h"
#include "gctl/core.h"
#include "gctl/io.h"
#include "gctl/math.h"
using namespace gctl;

View File

@@ -25,7 +25,7 @@
* Also add information on how to contact you by electronic and paper mail.
******************************************************/
#include "../lib/graphic/cliplot.h"
#include "gctl/graphic/cliplot.h"
int main(int argc, char *argv[])
{

View File

@@ -25,7 +25,7 @@
* Also add information on how to contact you by electronic and paper mail.
******************************************************/
#include "../lib/io.h"
#include "gctl/io.h"
using namespace gctl;
@@ -35,7 +35,7 @@ int main(int argc, char const *argv[]) try
dsv_io tc;
tc.delimeter('|');
tc.head_number(1);
tc.load_text("tmp/world_data", ".txt", ColHead|RowHead);
tc.load_text("data/world_data", ".txt", ColHead|RowHead);
tc.info(AttInfo|HeadInfo|TagInfo);
tc.filter("America", "Continent_s", ColHead);

View File

@@ -43,9 +43,9 @@
* along with libeemd. If not, see <http://www.gnu.org/licenses/>.
*/
#include "../lib/core.h"
#include "../lib/io.h"
#include "../lib/algorithms.h"
#include "gctl/core.h"
#include "gctl/io.h"
#include "gctl/math.h"
using namespace gctl;

View File

@@ -25,9 +25,9 @@
* Also add information on how to contact you by electronic and paper mail.
******************************************************/
#include "../lib/core.h"
#include "../lib/io.h"
#include "../lib/algorithm.h"
#include "gctl/core.h"
#include "gctl/io.h"
#include "gctl/math.h"
using namespace gctl;
@@ -64,7 +64,7 @@ void average_radian_spec(const array<double> &in_freq, const array<double> &in_p
if (!bin.empty())
{
bin_arr.import_vector(bin);
bin_arr.input(bin);
out_power[i] = bin_arr.mean();
out_std[i] = bin_arr.std();
}

View File

@@ -25,9 +25,9 @@
* Also add information on how to contact you by electronic and paper mail.
******************************************************/
#include "../lib/core.h"
#include "../lib/io.h"
#include "../lib/algorithm.h"
#include "gctl/core.h"
#include "gctl/io.h"
#include "gctl/math.h"
using namespace gctl;

View File

@@ -25,9 +25,9 @@
* Also add information on how to contact you by electronic and paper mail.
******************************************************/
#include "../lib/core.h"
#include "../lib/io.h"
#include "../lib/algorithm.h"
#include "gctl/core.h"
#include "gctl/io.h"
#include "gctl/math.h"
using namespace gctl;

View File

@@ -25,9 +25,9 @@
* Also add information on how to contact you by electronic and paper mail.
******************************************************/
#include "../lib/core.h"
#include "../lib/io.h"
#include "../lib/algorithm.h"
#include "gctl/core.h"
#include "gctl/io.h"
#include "gctl/math.h"
using namespace gctl;

View File

@@ -25,8 +25,8 @@
* Also add information on how to contact you by electronic and paper mail.
******************************************************/
#include "../lib/utility.h"
#include "../lib/geometry.h"
#include "gctl/utility.h"
#include "gctl/poly.h"
using namespace gctl;

View File

@@ -25,7 +25,7 @@
* Also add information on how to contact you by electronic and paper mail.
******************************************************/
#include "../lib/graphic/gmt.h"
#include "gctl/graphic/gmt.h"
int main(int argc, char *argv[])
{

View File

@@ -25,8 +25,8 @@
* Also add information on how to contact you by electronic and paper mail.
******************************************************/
#include "../lib/core/macro.h"
#include "../lib/graphic/gnuplot.h"
#include "gctl/core/macro.h"
#include "gctl/graphic/gnuplot.h"
int main(int argc, char *argv[])
{

View File

@@ -25,8 +25,8 @@
* Also add information on how to contact you by electronic and paper mail.
******************************************************/
#include "../lib/core.h"
#include "../lib/algorithm.h"
#include "gctl/core.h"
#include "gctl/math.h"
using namespace gctl;

View File

@@ -25,8 +25,8 @@
* Also add information on how to contact you by electronic and paper mail.
******************************************************/
#include "../lib/io.h"
#include "../lib/algebra.h"
#include "gctl/io.h"
#include "gctl/math.h"
using namespace gctl;

View File

@@ -25,8 +25,8 @@
* Also add information on how to contact you by electronic and paper mail.
******************************************************/
#include "../lib/geometry.h"
#include "../lib/algorithm.h"
#include "gctl/poly.h"
#include "gctl/math.h"
using namespace gctl;
@@ -39,8 +39,7 @@ int main(int argc, char const *argv[]) try
//array<double> xs = {-2.2, -1.8, -1.5, -1.0, -0.7, -0.2, 0.9, 1.3, 1.9, 2.5};
//ml.init(xs, std);
array<double> x(201);
sequence(x, 0.1, 0.001);
array<double> x(201, 0.1, 0.001);
for (size_t i = 0; i < x.size(); i++)
{

View File

@@ -25,8 +25,8 @@
* Also add information on how to contact you by electronic and paper mail.
******************************************************/
#include "../lib/core.h"
#include "../lib/io.h"
#include "gctl/core.h"
#include "gctl/io.h"
using namespace gctl;

View File

@@ -25,8 +25,8 @@
* Also add information on how to contact you by electronic and paper mail.
******************************************************/
#include "../lib/core.h"
#include "../lib/utility.h"
#include "gctl/core.h"
#include "gctl/utility.h"
using namespace gctl;

View File

@@ -25,7 +25,7 @@
* Also add information on how to contact you by electronic and paper mail.
******************************************************/
#include "../lib/geometry.h"
#include "gctl/math.h"
using namespace gctl;
@@ -60,7 +60,7 @@ int main(int argc, char const *argv[]) try
std::cout << "Geocentric: " << ps << std::endl;
// 转换为大地坐标
point3ds pd;
ellip.xyz2geodetic(ps.s2c(), pd.lon, pd.lat, pd.rad);
ellip.xyz2geodetic(s2c(ps), pd.lon, pd.lat, pd.rad);
std::cout << "Geodetic: " << pd << std::endl;
// 400km高
pd.rad = 400000.0;

View File

@@ -25,8 +25,8 @@
* Also add information on how to contact you by electronic and paper mail.
******************************************************/
#include "../lib/core.h"
#include "../lib/algorithms.h"
#include "gctl/core.h"
#include "gctl/math.h"
int main(int argc, char const *argv[])
{

View File

@@ -25,8 +25,8 @@
* Also add information on how to contact you by electronic and paper mail.
******************************************************/
#include "../lib/core.h"
#include "../lib/io.h"
#include "gctl/core.h"
#include "gctl/io.h"
using namespace gctl;

View File

@@ -25,9 +25,9 @@
* Also add information on how to contact you by electronic and paper mail.
******************************************************/
#include "../lib/core.h"
#include "../lib/algorithm.h"
#include "../lib/io.h"
#include "gctl/core.h"
#include "gctl/math.h"
#include "gctl/io.h"
using namespace gctl;