Data display processing method and processing device for scatter diagram
Technical field
The present invention relates to data processing field, in particular to a kind of data display processing method for scatter diagram
And device.
Background technology
Scatter diagram is a kind of present graphical of basic observation data, can be with display data according to the different attribute of figure
Different dimensions.Either rectangular coordinate system or polar coordinate system, the point in scatter diagram can pass through two different dimensions and represent
The position of point in the graphic, such as rectangular coordinate system are that the position of point is represented by X-axis and Y-axis, and polar coordinates are then by radius r
The position of point is represented with angle theta.In addition, the attribute such as the size at scatter diagram midpoint, color, shape can also display data
Different dimensions.But because scatter diagram is static chart, therefore, it is difficult to directly represent that data change with time by figure
Gesture so that scatter diagram is to index expressive ability Shortcomings as time change and ring ratio.
For the problem of data change over time trend can not be showed in correlation technique in scatter diagram, not yet propose at present
Effective solution.
The content of the invention
It is a primary object of the present invention to provide a kind of data display processing method and processing device for scatter diagram, to solve
The problem of data change over time trend can not be showed in scatter diagram in the prior art.
To achieve these goals, according to an aspect of the invention, there is provided a kind of data display for scatter diagram
Processing method.
Included according to the data display processing method for scatter diagram of the present invention:Obtain original scatter diagram;Determine original
Target point on scatter diagram;Calculate translational speed of the target point in preset time;Calculate target point target on original scatter diagram
The moving direction of position;Obtain for representing translational speed and the mark for representing moving direction;And in original scatter diagram
Upper displaying mark.
Further, target point is being calculated in the translational speed of preset time and is calculating target point mesh on original scatter diagram
Before the moving direction of cursor position, method also includes:Obtain first coordinate of the target point in the start time point of preset time;Obtain
Second coordinate of the target point at the termination time point of preset time is taken, wherein, calculate translational speed of the target point in preset time
Including:The movable length of target point is calculated according to the first coordinate and the second coordinate, is calculated and moved according to movable length and preset time
Dynamic speed, wherein, calculating target point moving direction of target location on original scatter diagram includes:According to the first coordinate and second
Coordinate calculates the moving direction of target point.
Further, obtain for representing translational speed and being used to represent for representing that the mark of moving direction includes drawing
Moving direction and the tail of a comet of translational speed mark, tail of a comet mark include arc mark, and the number of arc mark is used to identify movement
Speed, the direction indicated by the arc top of arc mark represent moving direction, obtain for representing translational speed and for representing to move
The mark in dynamic direction includes:Tail of a comet identification length is calculated, wherein, the length of tail of a comet mark is used for the mobile speed for representing target point
Degree;The direction of tail of a comet mark is calculated, wherein, the direction of tail of a comet mark is opposite with the moving direction of target point;And according to the tail of a comet
Draw tail of a comet mark in the direction of length and the tail of a comet mark of mark.
Further, when arc mark number is multiple, the direction indicated by the arc top of arc mark is identical.
Further, calculating the length of tail of a comet mark includes:Multiple different pre-set intervals are obtained, wherein, pre-set interval
Corresponded with the length of the tail of a comet;Judge the pre-set interval belonging to movable length;And based on the preset areas belonging to movable length
Between determine the tail of a comet mark length.
To achieve these goals, according to another aspect of the present invention, there is provided a kind of data display for scatter diagram
Processing unit.
Included according to the data display processing unit for scatter diagram of the present invention:First acquisition module, for obtaining original
Beginning scatter diagram;Determining module, for determining the target point on original scatter diagram;First computing module, exist for calculating target point
The translational speed of preset time;Second computing module, for calculating the mobile side of target point target location on original scatter diagram
To;Second acquisition module, it is used to represent translational speed and mark for representing moving direction for obtaining;And displaying mould
Block, for showing mark on original scatter diagram.
Further, target point is being calculated in the translational speed of preset time and is calculating target point mesh on original scatter diagram
Before the moving direction of cursor position, device also includes:3rd acquisition module, for obtaining target point in the starting of preset time
Between the first coordinate for putting;4th acquisition module, for obtaining second coordinate of the target point at the termination time point of preset time, its
In, calculate target point includes in the translational speed of preset time:The movement of target point is calculated according to the first coordinate and the second coordinate
Length, translational speed is calculated according to movable length and preset time, wherein, calculate target point target location on original scatter diagram
Moving direction include:The moving direction of target point is calculated according to the first coordinate and the second coordinate.
Further, obtain for representing translational speed and being used to represent for representing that the mark of moving direction includes drawing
Moving direction and the tail of a comet of translational speed mark, tail of a comet mark include arc mark, and the number of arc mark is used to identify movement
Speed, the direction indicated by the arc top of arc mark represent moving direction, and the second acquisition module includes:First computing unit, use
In calculating tail of a comet identification length, wherein, the length of tail of a comet mark is used for the translational speed for representing target point;Second computing unit,
For calculating the direction of tail of a comet mark, wherein, the direction of tail of a comet mark is opposite with the moving direction of target point;And draw single
Tail of a comet mark is drawn in member, the direction of length and the tail of a comet mark for being identified according to the tail of a comet.
Further, when arc mark number is multiple, the direction indicated by the arc top of arc mark is identical.
Further, the first computing unit includes:Acquiring unit, for obtaining multiple different pre-set intervals, wherein, in advance
If the length of section and the tail of a comet corresponds;Judging unit, for judging the pre-set interval belonging to movable length;And determine single
Member, for determining the length of tail of a comet mark based on the pre-set interval belonging to movable length.
By the present invention, using the translational speed and moving direction shown in original scatter diagram for representing target point
Mark, solve the problems, such as in scatter diagram can not to show in the prior art data and change over time trend, and then
Intuitively show the trend effect that data change over time in scatter diagram.
Brief description of the drawings
The accompanying drawing for forming the part of the application is used for providing a further understanding of the present invention, schematic reality of the invention
Apply example and its illustrate to be used to explain the present invention, do not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the data display processing method for scatter diagram according to embodiments of the present invention;
Fig. 2 is the schematic diagram of scatter diagram according to a first embodiment of the present invention;
Fig. 3 is the moving direction of calculating target point and the schematic diagram of translational speed according to embodiments of the present invention;
Fig. 4 is the schematic diagram of scatter diagram according to a second embodiment of the present invention;And
Fig. 5 is the schematic diagram of the data display processing unit for scatter diagram according to embodiments of the present invention.
Embodiment
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase
Mutually combination.Describe the present invention in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model that the present invention protects
Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, "
Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use
Data can exchange in the appropriate case, so as to embodiments of the invention described herein.In addition, term " comprising " and " tool
Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing the system of multiple components, production
Product or equipment are not necessarily limited to those components clearly listed, but may include not list clearly or for these productions
The other components of product or equipment inherently.
According to embodiments of the present invention, there is provided a kind of data display processing method for scatter diagram, Fig. 1 is according to this hair
The flow chart of the data display processing method for scatter diagram of bright embodiment.
As shown in figure 1, this method includes steps S102 to step S112:
Step S102:Obtain original scatter diagram.
Original scatter diagram is that the static state of the data at each statistics moment is showed.Original scatter diagram represents in dots
Each object of observation, as shown in Fig. 2 during natural language statistical disposition, using corn as kernel keyword, wrapped in statistics
In the article of the corn containing keyword, often comprising the word related to corn such as corn price, corn oil and corn seed, therefore
Using corn as in the original scatter diagram of the origin of coordinates, the point in the original scatter diagram is corresponded in the related object of corn,
Such as corn price, corn oil, corn seed, the distance of point and origin corresponding to different objects represent that the object closes with core
The correlation of keyword corn, for example, corn price, corn oil and jade in counting 100 using corn as the article of kernel keyword
The number of the appearance of these three words of rice seed, occurrence number represents bigger with the correlation of corn.In original scatter diagram
Point is only indicated in the data of current statistic moment object of observation.
Step S104:Determine the target point on original scatter diagram.
Determine that the target point on original scatter diagram determines object of observation, such as determine the corn price in scatter diagram to see
Survey object, it is determined that point is target point corresponding to corn price in scatter diagram.
Step S106:Calculate translational speed of the target point in preset time.
Each object of observation may change in data at different moments, for example, each the statistics moment counts 100
The number that corn price occurs in using corn as the article of kernel keyword, time that corn price occurs in the different statistics moment
Number is often different.Therefore, position of the target point corresponding to corn price in the original scatter diagram that the different statistics moment obtain
It can change.Preset time can be from upper one statistics moment to the time between the current statistic moment, by calculating mesh
Punctuate can obtain pace of change of the object of observation in preset time in the translational speed of preset time, therefore can weigh observation
The change speed degree of object.
Step S108:Calculate the moving direction of target point target location on original scatter diagram.
Target location refers to position of the target point on original scatter diagram, if original scatter diagram is rectangular coordinate system,
The target location can represent that wherein x represents that X-coordinate value and y represent Y-coordinate value, if original scatter diagram is pole by (x, y)
Coordinate system, then represented by (ρ, θ), wherein ρ represents that radius and θ represent angle.The moving direction of target point is used to represent target
The incidence relation of object object corresponding with other points in original scatter diagram corresponding to point, as shown in Fig. 2 arrow represents original
The direction of motion at scatter diagram midpoint, point corresponding to corn price move towards the direction of the point corresponding to corn, then illustrate corn
Price and the correlation of corn are increasing.
Step S110:Obtain for representing translational speed and the mark for representing moving direction.
For representing translational speed and for representing that the mark of moving direction is used to intuitively show sight corresponding to target point
Survey object to change with time trend, the mark can be an arrow or other can show the figure mark in direction
Know.
Step S112:Mark is shown on original scatter diagram.
The scatter diagram of prior art is the data that original scatter diagram can only show a statistics moment, can not show number
According to the trend of changing with time.By showing above-mentioned mark on original scatter diagram, can obtain one can show observation pair
Scatter diagram as changing over time trend.As shown in Fig. 2 the direction of arrow represents the moving direction of object of observation, the length of arrow
The translational speed for representing object of observation is spent, by the scatter diagram shown in Fig. 2, can intuitively be found out, the change of corn price
Change speed is faster than the pace of change of corn oil, the direction movement put corresponding to point towards corn corresponding to corn price, and corn
The opposite direction movement put corresponding to point towards corn corresponding to oily, illustrate the correlation of corn price and corn increasingly
Greatly, and the correlation of corn oil and corn is less and less.
The embodiment of the present invention is by calculating the target point in original scatter diagram in the translational speed of preset time and in target
The moving direction of position, and by showing in original scatter diagram for representing the translational speed of target point and the mark of moving direction
Know, realize the translational speed and moving direction that target point is intuitively shown in original scatter diagram, solve in the prior art
The problem of data change over time trend can not be showed in scatter diagram, further reached and showed data in scatter diagram at any time
Between the trend that changes.
Alternatively, target point is being calculated in the translational speed of preset time and is calculating target point target on original scatter diagram
Before the moving direction of position, method also includes:Obtain first coordinate of the target point in the start time point of preset time;Obtain
Second coordinate of the target point at the termination time point of preset time, wherein, calculate translational speed bag of the target point in preset time
Include:The movable length of target point is calculated according to the first coordinate and the second coordinate, movement is calculated according to movable length and preset time
Speed, wherein, calculating target point moving direction of target location on original scatter diagram includes:Sat according to the first coordinate and second
Mark calculates the moving direction of target point.
As shown in figure 3, the first coordinate in the start time point of preset time is P0(ρ0, θ0), in the termination of preset time
Second coordinate at time point is P1(ρ1, θ1), the distance between two coordinate points r can be obtained according to the cosine law, obtained:
The distance r of two coordinate points is displacement of the target point in preset time, by distance r and preset time both
The translational speed of target point can be obtained.
The vertical angles for remembering a sides are αa, then according to sine, obtain:
Straight line where extending point P1P0 intersects with X-axis, and note angle is α, then obtains:
α=αa+θ1
α represents that target point, should from the start time point of preset time to the direction of motion for terminating time point of preset time
Direction is used for the moving direction for representing target point target location on original scatter diagram.
Alternatively, obtain for representing translational speed and being used to represent to move for representing that the mark of moving direction includes drawing
Dynamic direction and the tail of a comet mark of translational speed, tail of a comet mark include arc mark, and the number of arc mark is used to identify mobile speed
Degree, the direction indicated by the arc top of arc mark represent moving direction, obtained for representing translational speed and for representing mobile
The mark in direction includes:Tail of a comet identification length is calculated, wherein, the length of tail of a comet mark is used for the translational speed for representing target point;
The direction of tail of a comet mark is calculated, wherein, the direction of tail of a comet mark is opposite with the moving direction of target point;And identified according to the tail of a comet
Length and the tail of a comet mark direction draw the tail of a comet mark.
The tail that the tail of a comet is identified when being moved with comet in starry sky in tow is similar, as shown in figure 4, tail of a comet mark is expressed as arc
Mark, the number of the arc mark of point is 2 corresponding to corn oil, and the arc mark number of point corresponding to corn seed is 3, corn
The arc mark number of point corresponding to price is 3, illustrate shifting of the translational speed more than corn oil of corn price and corn seed
Dynamic speed.The arc top of arc mark identifies the summit of outwardly convex part for arc, and the direction indicated by arc top is target point
The moving direction of the direction on sensing arc top, the direction and target point is on the contrary, from fig. 4, it can be seen that corn oil and corn price institute
Corresponding point is moved towards the direction of the point corresponding to corn, and the opposite direction of the point corresponding to corn seed towards corn is moved
It is dynamic.
Alternatively, when arc mark number is multiple, the direction indicated by the arc top of arc mark is identical.
In order to intuitively represent the moving direction of target point, when arc mark number is multiple, all arcs marks
Arc top instruction direction it is identical.
Alternatively, calculating the length of tail of a comet mark includes:Obtain multiple different pre-set intervals, wherein, pre-set interval with
The length of the tail of a comet corresponds;Judge the pre-set interval belonging to movable length;And based on the pre-set interval belonging to movable length
Determine the length of tail of a comet mark.
The length of tail of a comet mark shows as the number for the radian that the tail of a comet includes, and number more at most represents the mobile speed of target point
Degree is faster.The length of tail of a comet mark is discrete data, and target point has been obtained in above-mentioned steps in two seats at different moments
The distance r of punctuate, the process that distance r is changed into the length of tail of a comet mark is actually that Data processing continuous variable is discrete
The process of change.
Discretization refers to that continuous data cutting be some " sections ".The principle of cutting uses principle of equidistance, will be continuous
The span of type variable is uniformly divided into n equal portions, and every part of spacing is equal.Such as r is divided into one group less than 2, distance r positions
It is one group when between [2,4], distance r is one group positioned at [4,6] between, the like, the group number of division and group are away from can foundation
Depending on actual conditions, wherein, [0,2], [2,4], [4,6] etc. are then pre-set interval.
The number of pre-set interval and tail of a comet mark corresponds, for example, [0,2] corresponding 1 tail of a comet mark, [2,4] are right
2 tail of a comet marks are answered, and [4,6] then correspond to 3 tail of a comet marks, when distance r is 5, belong to pre-set interval [4,6], then target
The number of the tail of a comet mark of point is 3.
After the direction of the length of tail of a comet mark and tail of a comet mark is obtained, tail of a comet mark can be drawn in original scatter diagram
Know.The length parameter of tail of a comet mark incoming first, generates initial tail of a comet mark figure, i.e., the length parameter identified according to the tail of a comet is drawn
One direction identifies figure towards the tail of a comet of X-axis.Then the directioin parameter of tail of a comet mark is passed to, adjusts the angle of initial tail of a comet mark figure
Degree, i.e., initial tail of a comet mark figure is rotated by origin of coordinate points, rotated to the direction of the tail of a comet obtained above mark, dissipated original
Drawn in point diagram and obtain tail of a comet mark.In some cases, object of observation is expressed as one with target point in original scatter diagram
For the circle in the center of circle, then processing can be zoomed in and out to tail of a comet mark according to the size of round radius, the radius of such as circle doubles,
Then tail of a comet mark is corresponding to the distance in the center of circle doubles.
As can be seen from the above description, the present invention realizes following technique effect:
The embodiment of the present invention is by calculating the target point in original scatter diagram in the translational speed of preset time and in target
The moving direction of position, and by being shown in original scatter diagram for representing the translational speed of target point and the mark of moving direction
Know, realize the translational speed and moving direction that target point is intuitively shown in original scatter diagram, solve in the prior art
The problem of data change over time trend can not be showed in scatter diagram, further reached and showed data in scatter diagram at any time
Between the trend that changes.
It should be noted that can be in such as one group of computer executable instructions the flow of accompanying drawing illustrates the step of
Performed in computer system, although also, show logical order in flow charts, in some cases, can be with not
The order being same as herein performs shown or described step.
Another aspect according to embodiments of the present invention, there is provided a kind of data display processing unit for scatter diagram, should
Data display processing unit for scatter diagram can be used for performing at the data display for scatter diagram of the embodiment of the present invention
Reason method, the data display processing method for scatter diagram that the present invention is implemented can also be used to dissipate by the embodiment of the present invention
The data display processing unit of point diagram performs.Fig. 5 is that the data display for scatter diagram according to embodiments of the present invention is handled
The schematic diagram of device.
As shown in figure 5, the device includes:First acquisition module 10, determining module 20, the first computing module 30, the second meter
Calculate module 40, the second acquisition module 50 and display module 60.
First acquisition module 10, for obtaining original scatter diagram.
Original scatter diagram is that the static state of the data at each statistics moment is showed.Original scatter diagram represents in dots
Each object of observation, as shown in Fig. 2 during natural language statistical disposition, using corn as kernel keyword, wrapped in statistics
In the article of the corn containing keyword, often comprising the word related to corn such as corn price, corn oil and corn seed, therefore
Using corn as in the original scatter diagram of the origin of coordinates, the point in the original scatter diagram is corresponded in the related object of corn,
Such as corn price, corn oil, corn seed, the distance of point and origin corresponding to different objects represent that the object closes with core
The correlation of keyword corn, for example, corn price, corn oil and jade in counting 100 using corn as the article of kernel keyword
The number of the appearance of these three words of rice seed, occurrence number represents bigger with the correlation of corn.In original scatter diagram
Point is only indicated in the data of current statistic moment object of observation.
Determining module 20, for determining the target point on original scatter diagram.
Determine that the target point on original scatter diagram determines object of observation, such as determine the corn price in scatter diagram to see
Survey object, it is determined that point is target point corresponding to corn price in scatter diagram.
First computing module 30, for calculating translational speed of the target point in preset time.
Each object of observation may change in data at different moments, for example, each the statistics moment counts 100
The number that corn price occurs in using corn as the article of kernel keyword, time that corn price occurs in the different statistics moment
Number is often different.Therefore, position of the target point corresponding to corn price in the original scatter diagram that the different statistics moment obtain
It can change.Preset time can be from upper one statistics moment to the time between the current statistic moment, by calculating mesh
Punctuate can obtain pace of change of the object of observation in preset time in the translational speed of preset time, therefore can weigh observation
The change speed degree of object.
Second computing module 40, for calculating the moving direction of target point target location on original scatter diagram.
Target location refers to position of the target point on original scatter diagram, if original scatter diagram is rectangular coordinate system,
The target location can represent that wherein x represents that X-coordinate value and y represent Y-coordinate value, if original scatter diagram is pole by (x, y)
Coordinate system, then represented by (ρ, θ), wherein ρ represents that radius and θ represent angle.The moving direction of target point is used to represent target
The incidence relation of object object corresponding with other points in original scatter diagram corresponding to point, as shown in Fig. 2 arrow represents original
The direction of motion at scatter diagram midpoint, point corresponding to corn price move towards the direction of the point corresponding to corn, then illustrate corn
Price and the correlation of corn are increasing.
Second acquisition module 50, it is used to represent translational speed and mark for representing moving direction for obtaining.
For representing translational speed and for representing that the mark of moving direction is used to intuitively show sight corresponding to target point
Survey object to change with time trend, the mark can be an arrow or other can show the figure mark in direction
Know.
Display module 60, for showing mark on original scatter diagram.
The scatter diagram of prior art is the data that original scatter diagram can only show a statistics moment, can not show number
According to the trend of changing with time.By showing above-mentioned mark on original scatter diagram, can obtain one can show observation pair
Scatter diagram as changing over time trend.As shown in Fig. 2 the direction of arrow represents the moving direction of object of observation, the length of arrow
The translational speed for representing object of observation is spent, by the scatter diagram shown in Fig. 2, can intuitively be found out, the change of corn price
Change speed is faster than the pace of change of corn oil, the direction movement put corresponding to point towards corn corresponding to corn oil, and corn oil
Opposite direction movement is put corresponding to corresponding point towards corn, illustrates that the correlation of corn price and corn is increasing, and
The correlation of corn oil and corn is less and less.
The present invention calculates translational speed of the target point in original scatter diagram in preset time by the first computing module 30
Moving direction of the target point in target location is calculated with the second computing module 40, is obtained by the second acquisition module 50 for representing
Translational speed and the mark for representing moving direction, and the mark is shown in original scatter diagram by display module 60, it is real
The translational speed and moving direction of target point are intuitively shown in present original scatter diagram, solving can not dissipate in the prior art
Show the problem of data change over time trend in point diagram, further reached and showed what data changed over time in scatter diagram
Trend.
Alternatively, target point is being calculated in the translational speed of preset time and is calculating target point target on original scatter diagram
Before the moving direction of position, device also includes:3rd acquisition module, for obtaining initial time of the target point in preset time
First coordinate of point;4th acquisition module, for obtaining second coordinate of the target point at the termination time point of preset time, its
In, calculate target point includes in the translational speed of preset time:The movement of target point is calculated according to the first coordinate and the second coordinate
Length, translational speed is calculated according to movable length and preset time, wherein, calculate target point target location on original scatter diagram
Moving direction include:The moving direction of target point is calculated according to the first coordinate and the second coordinate.
As shown in figure 3, the first coordinate in the start time point of preset time is P0(ρ0, θ0), in the termination of preset time
Second coordinate at time point is P1(ρ1, θ1), the distance between two coordinate points r can be obtained according to the cosine law, obtained:
The distance r of two coordinate points is displacement of the target point in preset time, by distance r and preset time both
The translational speed of target point can be obtained.
The vertical angles for remembering a sides are αa, then according to sine, obtain:
Straight line where extending point P1P0 intersects with X-axis, and note angle is α, then obtains:
α=αa+θ1
α represents that target point, should from the start time point of preset time to the direction of motion for terminating time point of preset time
Direction is used for the moving direction for representing target point target location on original scatter diagram.
Alternatively, obtain for representing translational speed and being used to represent to move for representing that the mark of moving direction includes drawing
Dynamic direction and the tail of a comet mark of translational speed, tail of a comet mark include arc mark, and the number of arc mark is used to identify mobile speed
Degree, the direction indicated by the arc top of arc mark represent moving direction, and the second acquisition module includes:First computing unit, is used for
Tail of a comet identification length is calculated, wherein, the length of tail of a comet mark is used for the translational speed for representing target point;Second computing unit, use
In the direction for calculating tail of a comet mark, wherein, the direction of tail of a comet mark is opposite with the moving direction of target point;And drawing unit,
Draw tail of a comet mark in the direction of length and the tail of a comet mark for being identified according to the tail of a comet.
The tail that the tail of a comet is identified when being moved with comet in starry sky in tow is similar, as shown in figure 4, tail of a comet mark is expressed as arc
Mark, the number of the arc mark of point is 2 corresponding to corn oil, and the arc mark number of point corresponding to corn seed is 3, corn
The arc mark number of point corresponding to price is 3, illustrate shifting of the translational speed more than corn oil of corn price and corn seed
Dynamic speed.The arc top of arc mark identifies the summit of outwardly convex part for arc, and the direction indicated by arc top is target point
The moving direction of the direction on sensing arc top, the direction and target point is on the contrary, from fig. 4, it can be seen that corn oil and corn price institute
Corresponding point is moved towards the direction of the point corresponding to corn, and the opposite direction of the point corresponding to corn seed towards corn is moved
It is dynamic.
Alternatively, the first computing unit includes:Acquiring unit, for obtaining multiple different pre-set intervals, wherein, preset
The length of section and the tail of a comet corresponds;Judging unit, for judging the pre-set interval belonging to movable length;And determine single
Member, for determining the length of tail of a comet mark based on the pre-set interval belonging to movable length.
The length of tail of a comet mark shows as the number for the radian that the tail of a comet includes, and number more at most represents the mobile speed of target point
Degree is faster.The length of tail of a comet mark is discrete data, and target point has been obtained in above-mentioned steps in two seats at different moments
The distance r of punctuate, the process that distance r is changed into the length of tail of a comet mark is actually that Data processing continuous variable is discrete
The process of change.
Discretization refers to that continuous data cutting be some " sections ".The principle of cutting uses principle of equidistance, will be continuous
The span of type variable is uniformly divided into n equal portions, and every part of spacing is equal.Such as r is divided into one group less than 2, distance r positions
It is one group when between [2,4], distance r is one group positioned at [4,6] between, the like, the group number of division and group are away from can foundation
Depending on actual conditions, wherein, [0,2], [2,4], [4,6] etc. are then pre-set interval.
The number of pre-set interval and tail of a comet mark corresponds, for example, [0,2] corresponding 1 tail of a comet mark, [2,4] are right
2 tail of a comet marks are answered, and [4,6] then correspond to 3 tail of a comet marks, when distance r is 5, belong to pre-set interval [4,6], then target
The number of the tail of a comet mark of point is 3.
After the direction of the length of tail of a comet mark and tail of a comet mark is obtained, tail of a comet mark can be drawn in original scatter diagram
Know.The length parameter of tail of a comet mark incoming first, generates initial tail of a comet mark figure, i.e., the length parameter identified according to the tail of a comet is drawn
One direction identifies figure towards the tail of a comet of X-axis.Then the directioin parameter of tail of a comet mark is passed to, adjusts the angle of initial tail of a comet mark figure
Degree, i.e., initial tail of a comet mark figure is rotated by origin of coordinate points, rotated to the direction of the tail of a comet obtained above mark, dissipated original
Drawn in point diagram and obtain tail of a comet mark.In some cases, object of observation is expressed as one with target point in original scatter diagram
For the circle in the center of circle, then processing can be zoomed in and out to tail of a comet mark according to the size of round radius, the radius of such as circle doubles,
Then tail of a comet mark is corresponding to the distance in the center of circle doubles.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general
Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and formed
Network on, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to they are stored
Performed in the storage device by computing device, either they are fabricated to respectively each integrated circuit modules or by they
In multiple modules or step be fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific
Hardware and software combines.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.