Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table Integration #10

Open
wants to merge 31 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
ec0ae64
adds integration to Histogram
HunterBelanger Jan 14, 2021
36bab58
adds integration to LinearLinear
HunterBelanger Jan 14, 2021
9ec3289
adds integration to LinearLogarithmic
HunterBelanger Jan 14, 2021
abc97df
move LinearLogarithmic tests to their own file
HunterBelanger Jan 14, 2021
9d668e9
adds LogarithmicLinear integragion. Must modify to reduce error
HunterBelanger Jan 15, 2021
cb99e3a
added build directory to .gitignore
HunterBelanger Jan 15, 2021
b81bdf2
remove currently unneeded <iostream> header
HunterBelanger Jan 15, 2021
a07f4fa
adds integration to LogarithmicLogarithmic
HunterBelanger Jan 16, 2021
6b5cd65
adds basic integration for basic table (Ex1)
HunterBelanger Jan 21, 2021
9e6b127
fixes bug in integration over more than one interval
HunterBelanger Jan 22, 2021
fa58f1f
adjusted formatting
HunterBelanger Jan 22, 2021
a72bce0
Adds integration to Variant tables
HunterBelanger Jan 22, 2021
6917281
changes name of do_integrate to integrate. Necessary for template mag…
HunterBelanger Jan 23, 2021
8239671
Adds integration for domain Min and Max decorators
HunterBelanger Jan 23, 2021
e7c8bca
Add integration compatability to left and right intervals
HunterBelanger Jan 23, 2021
6c1f8d4
Changes for agreement with style guide
HunterBelanger Jan 23, 2021
0b49b1a
throw logic_error when trying to integrating a table with transformat…
HunterBelanger Jan 24, 2021
2aa6e3c
Adds integration to Vector table
HunterBelanger Jan 24, 2021
39059d2
Adds unit tests for integration of Type
HunterBelanger Feb 13, 2021
815d075
Adds unit tests for integration of Type
HunterBelanger Feb 13, 2021
135f27e
Adds to unit test for Variant
HunterBelanger Feb 13, 2021
61b5bae
Adds to unit test for Vector
HunterBelanger Feb 13, 2021
f78afb6
Adds to unit test for domain.max
HunterBelanger Feb 13, 2021
342e9f1
Adds to unit test for domain.min
HunterBelanger Feb 13, 2021
d10d124
Adds to unit tests for left
HunterBelanger Feb 13, 2021
f3a5805
Adds to unit tests for right
HunterBelanger Feb 13, 2021
8f0f212
Adds to unit test for transform
HunterBelanger Feb 13, 2021
20cdaff
Adds some integration to a few of the examples
HunterBelanger Feb 13, 2021
dc4d839
Adds one integration example to readme
HunterBelanger Feb 13, 2021
9710c07
Fixes unit tests for LogarithmicLinear
HunterBelanger Feb 13, 2021
a0e728b
Removes unused F1 and F2 lambdas from LinearLogarithmic interpolate t…
HunterBelanger Mar 1, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adds to unit test for domain.min
HunterBelanger committed Feb 13, 2021
commit 342e9f1e7f965d263b1564de4d16f2a366dc459a
Original file line number Diff line number Diff line change
@@ -35,5 +35,15 @@ SCENARIO("An interpolation table can be constructed"
REQUIRE_THROWS( myTable( -1.0 ) );
REQUIRE_THROWS( myTable( -1.0, myTable.search() ) );
}

THEN("the table can be integrated in the center interval"){
REQUIRE( 10. == myTable.integrate(1., 3.) );
REQUIRE( 10. == myTable.integrate(1., 3., myTable.search()) );
}

THEN("the table will throw for integration limits less than the domain min"){
REQUIRE_THROWS( myTable.integrate(-1., 3.) );
REQUIRE_THROWS( myTable.integrate(-1., 3., myTable.search()) );
}
}
}
Original file line number Diff line number Diff line change
@@ -32,5 +32,15 @@ SCENARIO("An interpolation table can be constructed with a domain minimum"){
REQUIRE_THROWS( myTable( -1.0 ) );
REQUIRE_THROWS( myTable( -1.0, myTable.search() ) );
}

THEN("the table can be integrated in the center interval"){
REQUIRE( 10. == myTable.integrate(1., 3.) );
REQUIRE( 10. == myTable.integrate(1., 3., myTable.search()) );
}

THEN("the table will throw for integration limits less than the domain min"){
REQUIRE_THROWS( myTable.integrate(-1., 3.) );
REQUIRE_THROWS( myTable.integrate(-1., 3., myTable.search()) );
}
}
}