0

我有一个使用实验数据生成的二维图,我想存储所有图和数据以进行多个实验

我正在考虑使用像这样的桌子

id  | value                                                             | n  
--------------------------------------------------------------------------------
1   | {"(0,0)","(125,100)","(200,200)","(297,300)","(4,400)","(5,500)"} |    6

甚至

id | x   | y
------------
1    0     0
1   125  100
1   200  200
1   297  300
1   4    400
1   5    500

但我认为这不是一个好方法,最好的方法是什么?

4

1 回答 1

1

我建议这种结构:

过期表

id | Title            | Descirption        | .... more info
------------------------------------------------------------------
10   Experiment title   some description
20   Experiment title   some description
30   Experiment title   some description

节点表

id| Name  | Description   | ExperimentID ....
------------------------------------------
1   text    more text...        10
2   text    more text...        10
3   text    more text...        10

桌边

id| SourceNode| TargetNode
----------------------------
1       1            2
2       1            3
3       3            2
4       3            1

如果您需要为每个节点存储基于像素的位置,则将 (x,y) 添加到节点表...

于 2013-02-28T04:03:36.713 回答