T
- the type of numbers this detector uses.
public class FieldFunctionalDetector<T extends org.hipparchus.CalculusFieldElement<T>> extends FieldAbstractDetector<FieldFunctionalDetector<T>,T>
g(FieldSpacecraftState)
函数的探测器,可以使用withFunction(Function)
进行设置。
例如,要创建一个简单的日期探测器,请使用:
FieldFunctionalDetector<T> d = new FieldFunctionalDetector<>(field) .withGFunction((s) -> s.getDate().durationFrom(triggerDate)) .withMaxCheck(field.getZero().add(1e10));
DEFAULT_MAX_ITER, DEFAULT_MAXCHECK, DEFAULT_THRESHOLD
Modifier | Constructor and Description |
---|---|
|
FieldFunctionalDetector(org.hipparchus.Field<T> field)
使用默认值创建事件探测器。
|
protected |
FieldFunctionalDetector(FieldAdaptableInterval<T> maxCheck, T threshold, int maxIter, FieldEventHandler<T> handler, Function<FieldSpacecraftState<T>,T> function)
私有构造函数。
|
Modifier and Type | Method and Description |
---|---|
protected FieldFunctionalDetector<T> |
create(FieldAdaptableInterval<T> newMaxCheck, T newThreshold, int newMaxIter, FieldEventHandler<T> newHandler)
构建一个新实例。
|
T |
g(FieldSpacecraftState<T> s)
计算切换函数的值。
|
Function<FieldSpacecraftState<T>,T> |
getFunction()
获取切换函数。
|
FieldFunctionalDetector<T> |
withFunction(Function<FieldSpacecraftState<T>,T> newGFunction)
创建一个具有新g函数的新事件探测器,保持所有其他属性不变。
|
getHandler, getMaxCheckInterval, getMaxIterationCount, getThreshold, init, isForward, withHandler, withMaxCheck, withMaxCheck, withMaxIter, withThreshold
public FieldFunctionalDetector(org.hipparchus.Field<T> field)
FieldAbstractDetector.DEFAULT_MAXCHECK
、FieldAbstractDetector.DEFAULT_THRESHOLD
、FieldAbstractDetector.DEFAULT_MAX_ITER
、ContinueOnEvent
,以及一个恒等于1的g函数。
field
- 此探测器定义的场。
protected FieldFunctionalDetector(FieldAdaptableInterval<T> maxCheck, T threshold, int maxIter, FieldEventHandler<T> handler, Function<FieldSpacecraftState<T>,T> function)
maxCheck
- 最大检查间隔
threshold
- 收敛阈值(秒)
maxIter
- 事件时间搜索中的最大迭代次数
handler
- 在事件发生时调用的事件处理程序
function
- 切换函数。
public T g(FieldSpacecraftState<T> s)
FieldAbstractDetector
g
在接口 FieldEventDetector<T extends org.hipparchus.CalculusFieldElement<T>>
g
在类 FieldAbstractDetector<T extends org.hipparchus.CalculusFieldElement<T>>,T extends org.hipparchus.CalculusFieldElement<T>>
s
- 当前状态信息:日期、运动学、姿态
protected FieldFunctionalDetector<T> create(FieldAdaptableInterval<T> newMaxCheck, T newThreshold, int newMaxIter, FieldEventHandler<T> newHandler)
FieldAbstractDetector
public FieldFunctionalDetector<T> withFunction(Function<FieldSpacecraftState<T>,T> newGFunction)
FieldAbstractDetector.withMaxCheck(FieldAdaptableInterval)
和FieldAbstractDetector.withThreshold(CalculusFieldElement)
设置此g函数的适当值。
newGFunction
- 新的g函数。
public Function<FieldSpacecraftState<T>,T> getFunction()
g(FieldSpacecraftState)
中使用的函数。
Copyright © 2002-2023 CS GROUP. All rights reserved.