This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import static java.lang.System.out; | |
import java.util.function.IntUnaryOperator; | |
/** | |
* See https://softwareengineering.stackexchange.com/questions/376845/how-should-i-store-unknown-and-missing-values-in-a-variable-while-still-ret | |
*/ | |
public abstract class Measurement { | |
/** | |
* Prints: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import math | |
# ############################################################ | |
# unutbu's model() (https://stackoverflow.com/a/35118683/27358) | |
def model(params, xyz): | |
a, b, c, d = params | |
x, y, z = xyz |
OlderNewer