添加了datafiting工程的版权声明

This commit is contained in:
2402_87729496 2026-04-25 14:41:57 +08:00
parent 973874d270
commit 6ec82253c0
16 changed files with 266 additions and 10 deletions

View File

@ -1,3 +1,19 @@
/*
Copyright 2026 LI Meng
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
export class COMMON_VALUE{
/**
* 字体大小(大)
@ -27,4 +43,4 @@ export class COMMON_VALUE{
* 浅白
*/
static readonly LIGHT_WHITE = '#F2F2F2'
}
}

View File

@ -1,3 +1,19 @@
/*
Copyright 2026 LI Meng
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import promptAction from '@ohos.promptAction'
import { COMMON_VALUE } from '../common/commonValue'
import { handle } from '../utils/algorithm/createPotGather'

View File

@ -1,3 +1,19 @@
/*
Copyright 2026 LI Meng
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { COMMON_VALUE } from '../common/commonValue'
import { funcInfo } from '../utils/FunctionUtil'

View File

@ -1,3 +1,19 @@
/*
Copyright 2026 LI Meng
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { COMMON_VALUE } from '../common/commonValue'
import { BoardInfo } from '../utils/drawBoard/BoardType'
import { IPoint, PointType } from '../utils/drawBoard/DrawPoint'
@ -62,4 +78,4 @@ export struct header {
})
}.width('100%').height('100%').padding(5).backgroundColor(COMMON_VALUE.LIGHT_WHITE)
}
}
}

View File

@ -1,3 +1,19 @@
/*
Copyright 2026 LI Meng
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { BoardInfo, CONTEXT, FIT_CONTEXT } from '../utils/drawBoard/BoardType'
import { IPoint } from '../utils/drawBoard/DrawPoint'
import { funcInfo, functionUtilIns } from '../utils/FunctionUtil'
@ -28,4 +44,4 @@ export struct imageShow {
}
}
}
}
}

View File

@ -1,3 +1,19 @@
/*
Copyright 2026 LI Meng
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import picker from '@ohos.file.picker';
import { BusinessError } from '@ohos.base';
import fs from '@ohos.file.fs';

View File

@ -1,3 +1,19 @@
/*
Copyright 2026 LI Meng
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { controlBar } from '../component/ControlBar'
import { fitFuncType } from '../component/FitFuncType'
import { header } from '../component/Header'

View File

@ -1,3 +1,19 @@
/*
Copyright 2026 LI Meng
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { IPoint, PointType } from './drawBoard/DrawPoint'
import { handle } from './algorithm/createPotGather'
@ -46,4 +62,4 @@ class FunctionUtil {
}
}
export let functionUtilIns = new FunctionUtil()
export let functionUtilIns = new FunctionUtil()

View File

@ -1,3 +1,19 @@
/*
Copyright 2026 LI Meng
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { mathjs } from './evaluate';
import {IPoint, PointType} from "../drawBoard/DrawPoint"
import {FitRes} from "./fittingResult"
@ -156,4 +172,4 @@ class CreatePointGather {
}
}
export let handle: CreatePointGather = new CreatePointGather();
export let handle: CreatePointGather = new CreatePointGather();

View File

@ -1,3 +1,19 @@
/*
Copyright 2026 LI Meng
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
interface replaceableVar {
char: string,
value: number

View File

@ -1,3 +1,19 @@
/*
Copyright 2026 LI Meng
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import {IPoint} from "../drawBoard/DrawPoint"
export class Exponent {
@ -45,4 +61,4 @@ export class Exponent {
return [a, b];
}
}
}

View File

@ -1,3 +1,19 @@
/*
Copyright 2026 LI Meng
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
/**
* 拟合结果接口类型,包含拟合的函数系数和协方差矩阵
*/
@ -6,4 +22,4 @@ export interface FitRes {
covarianceMatrix?: number[][];
error?: number;
R_squared?: number;
}
}

View File

@ -1,3 +1,19 @@
/*
Copyright 2026 LI Meng
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import {IPoint} from "../drawBoard/DrawPoint"
import {FitRes} from "./fittingResult"
@ -123,4 +139,4 @@ export class Matrix {
return fitRes;
}
}
}

View File

@ -1,3 +1,19 @@
/*
Copyright 2026 LI Meng
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import {IPoint} from "../drawBoard/DrawPoint"
import {Matrix} from "./least_square"
@ -62,4 +78,4 @@ export class Logarithm {
}
return [ a, b, c ];
}
}
}

View File

@ -1,3 +1,19 @@
/*
Copyright 2026 LI Meng
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { IPoint, PointType } from './DrawPoint';
//标准值
/**

View File

@ -1,3 +1,19 @@
/*
Copyright 2026 LI Meng
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
export enum PointType{
DISCONTINUE = 0,
CONTINUE = 1
@ -12,4 +28,4 @@ export interface IPoint{
y:number
pointType:PointType
}
}