예제 #1
0
func newDelay(system *system.System, uncertainty uncertainty.Uncertainty,
	config *config.Quantity) (*delay, error) {

	ni, _ := uncertainty.Mapping()
	base, err := newBase(system, uncertainty, config, ni, 1)
	if err != nil {
		return nil, err
	}
	return &delay{base}, nil
}
예제 #2
0
func newTemperature(system *system.System, uncertainty uncertainty.Uncertainty,
	config *config.Quantity) (*temperature, error) {

	ni, _ := uncertainty.Mapping()
	base, err := newBase(system, uncertainty, config, ni, 1)
	if err != nil {
		return nil, err
	}
	return &temperature{base}, nil
}