API Reference / configurationFit · function
Function: configurationFit()
function configurationFit(
engine,
jdUt,
target,
opts?): number;
Similarity between the sky at jdUt and a target feature vector — shorthand
for cosineSimilarity(chartFeatures(engine, jdUt, opts), target). The scoring
function searchConfigurations maximizes.
Parameters
| Parameter | Type | Description |
|---|---|---|
engine | Engine | The engine used to evaluate positions. |
jdUt | number | Julian Day in UT. |
target | number[] | A target feature vector from chartFeatures. |
opts | FeatureOptions | FeatureOptions — must match those used to build target. |
Returns
number
Cosine similarity in [-1, 1].