Correct code example
This commit is contained in:
parent
9e02432e06
commit
8ea48b398e
|
@ -34,16 +34,19 @@ import org.apache.commons.math4.legacy.core.RealFieldElement;
|
|||
* // The x value that caused the problem.
|
||||
* private final SomeFieldType x;
|
||||
*
|
||||
* public LocalException(SomeFieldType x) {
|
||||
* LocalException(SomeFieldType x) {
|
||||
* this.x = x;
|
||||
* }
|
||||
*
|
||||
* public double getX() {
|
||||
* SomeFieldType getX() {
|
||||
* return x;
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* private static class MyFunction implements FieldUnivariateFunction<SomeFieldType> {
|
||||
*
|
||||
* // ... function set-up
|
||||
*
|
||||
* public SomeFieldType value(SomeFieldType x) {
|
||||
* SomeFieldType y = hugeFormula(x);
|
||||
* if (somethingBadHappens) {
|
||||
|
|
Loading…
Reference in New Issue