如何区分主数据和计算插值数据?

发布于 2024-09-30 18:41:49 字数 386 浏览 1 评论 0原文

我得到了一堆带有一组固定值的数据点的向量,在下面的示例中,您会看到每个时间点都有一个值的向量的示例,

1D:2
2D:
7D:5
1M:6
6M:6.5

但可惜并非所有时间点都有可用的值。所有向量都存储在数据库中,并且通过触发器,我们通过插值或更高级的算法来计算缺失值。不知何故,我希望能够知道哪些数据点已被计算,哪些数据点是原始交付给我们的。当然,我可以在表中添加一个标志列,其中的值指示该值是主值还是计算所得,但我想知道是否有更复杂的方法。我们可能不需要定期确定,因此 cpu 周期不是确定或插入的问题。

上面的示例显示了一些看起来很漂亮的数字,但实际上它看起来更像 3.1415966533。

存储的数据库叫oracle 10。

干杯。

I'm getting a bunch of vectors with datapoints for a fixed set of values, in the example below you see an example of a vector with a value per time point

1D:2
2D:
7D:5
1M:6
6M:6.5

But alas not for all the timepoints is a value available. All vectors are stored in a database and with a trigger we calcuate the missing values by interpolation, or possibly a more advanced algorithm. Somehow I want to be able to tell which data points have been calculated and which have been original delivered to us. Of course I can add a flag column to the table with values indicating whether the value was a master value or is calculated, but I'm wondering whether there is a more sophisticated way. We probably don't need to determine on a regular basis, so cpu cycles are not an issue for determining or insertion.

The example above shows some nice looking numbers but in reality it would look more somethin like 3.1415966533.

The database for storage is called oracle 10.

cheers.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

千と千尋 2024-10-07 18:41:49

您可以暂时停用触发器吗?

Could you deactivate the trigger temporarily?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文