Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
motosat
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Elphel
motosat
Commits
1b048f05
Commit
1b048f05
authored
Sep 23, 2019
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debugging multi-satelite search
parent
d49ee8a4
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
135 additions
and
62 deletions
+135
-62
PolynomialApproximation.php
PolynomialApproximation.php
+9
-3
test_01.php
test_01.php
+126
-59
No files found.
PolynomialApproximation.php
View file @
1b048f05
...
...
@@ -7,7 +7,7 @@ class PolynomialApproximation
public
$debugLevel
=
1
;
public
$debugFile
=
null
;
public
function
polynomialApproximation1d
(
$data
,
$N
){
public
function
polynomialApproximation1d
(
$data
,
$N
,
$noreduce
=
true
){
//$my_array = array_fill(0, $size_of_the_array, $some_data);
if
(
$this
->
debugFile
===
null
){
$this
->
debugLevel
=
0
;
...
...
@@ -70,8 +70,14 @@ class PolynomialApproximation
return
$result
;
}
catch
(
Exception
$e
)
{
echo
'Caught exception: '
,
$e
->
getMessage
(),
", reducing polynomial order
\n
"
;
if
(
$N1
<
0
)
{
//// fprintf($dbg_file, print_r(debug_backtrace(),1));
fprintf
(
$this
->
debugFile
,
"polynomialApproximation1d() Caught exception: "
.
$e
->
getMessage
(),
", reducing polynomial order
\n
"
);
fprintf
(
$this
->
debugFile
,
print_r
(
debug_backtrace
(),
1
)
.
"
\n
"
);
fprintf
(
$this
->
debugFile
,
"data="
.
print_r
(
debug_backtrace
(),
1
)
.
"
\n
Matrix M:
\n
"
);
$M
->
print
(
$this
->
debugFile
);
// echo 'Caught exception: ', $e->getMessage(), ", reducing polynomial order\n";
if
((
$N1
<
0
)
||
$noreduce
)
{
return
null
;
}
$N1
--
;
...
...
test_01.php
View file @
1b048f05
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment