Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide data resource processing method, system and the electronic equipment applied and terminal, solves the single problem causing application scenarios limited of resource transmission mode in prior art.
For realizing above-mentioned target and other related objectives, the invention provides a kind of data resource processing method, comprising: formulate the many scenes of multiple resources and share processing policy, the many scenes of each described resource share processing policy and comprise at least one attribute; The many scenes of each resource share processing policy and share processing policy group by the many scenes of the function difference classification multiple resource of formation, wherein, the many scenes of each resource share attribute that the many scenes of resource in processing policy group share processing policy and are associated with at least unitary feature respectively, and be associated with the default degree of correlation, the described default degree of correlation is calculated according to the relatedness computation rule preset by the property value of value privately owned for described first feature and described attribute; Obtain and the request type information of resolving the external equipment of resource request to extract at least one first feature; Search according to extracted first feature and determine that the many scenes of resource of the association that the default degree of correlation meets the demands share processing policy group; According to the searched default degree of correlation, from determine that the many scenes of resource associated share processing policy group and select the many scenes of preferred resources to share processing policy; Share the processing policy pair resource corresponding to described request type information according to the many scenes of described preferred resources to process, to respond this external equipment.
Optionally, the many scenes of described resource share processing policy and comprise: resource request processing policy, resource transmission processing policy and resource data processing policy; Wherein, resource request processing policy is formulated according to the demand of the application scenarios of resource; Resource transmission processing policy is formulated according to the demand of the transmission network situation of resource; Resource data processing policy is formulated according to the demand of the use scenes of resource and transmission network situation.
Optionally, described relatedness computation rule comprises: calculate in the history resource request message sample set of pre-collecting and belong to the mean value of first characteristic value of same default kind and the many scenes of each resource and share the mean value belonging to the property value of same default category attribute in processing policy; Utilize the degree of correlation between mean value calculation unit's feature of described first characteristic value and property value and attribute.
Optionally, describedly search according to extracted first feature and determine that the many scenes of resource of the association that the default degree of correlation meets the demands share processing policy group, comprise following in any one: 1) if current first feature of comprising of request type information and the many scenes of one or more resource share the degree of correlation that the many scenes of resource in processing policy group share processing policy attribute all reach more than predetermined threshold value, then many for resource maximum for degree of correlation scenes are shared processing policy group and share processing policy group as the many scenes of resource of described association; 2) if existing other yuan of feature association shares processing policy group in the many scenes of Current resource in request type information, then when associating Current resource many scenes and sharing processing policy group, calculate the partial correlation that current first feature that this request type information comprises and the many scenes of Current resource share processing policy group; If described partial correlation reaches more than predetermined threshold value, and the degree of correlation between the attribute that current first feature and the many scenes of the Current resource many scenes of resource shared in processing policy group share processing policy also reaches more than predetermined threshold value, then determine that described current first feature association shares processing policy group in the many scenes of Current resource; 3) if current first feature that request type information comprises is not associated with the many scenes of any resource share processing policy group, then the many scenes of newly-built resource share processing policy group, and need the many scenes of resource of association to share processing policy current first feature to add wherein, to share processing policy group as the many scenes of resource with current first feature association.
Optionally, described according to the searched default degree of correlation, from determine that the many scenes of resource associated share processing policy group and select the many scenes of preferred resources to share processing policy, comprise: determine that if described to share processing policy group be one for the many scenes of resource that associate, then share the many scenes of the resource selecting the degree of correlation maximum in processing policy group in the many scenes of the resource of described association and share processing policy and share processing policy as the many scenes of described preferred resources; Or, determine that if described the many scenes of resource associated share processing policy group and have multiple, then select to share in processing policy group in the many scenes of the resource of each association respectively to select the many scenes of the maximum resource of each correlation to share processing policy to share processing policy as the many scenes of described preferred resources.
For realizing above-mentioned target and other related objectives, the invention provides a kind of resource processing system, comprising: resource associations module, share processing policy for formulating the many scenes of multiple resources, the many scenes of each described resource share processing policy and comprise at least one attribute; The many scenes of each resource share processing policy and share processing policy group by the many scenes of the function difference classification multiple resource of formation, wherein, the many scenes of each resource share attribute that the many scenes of resource in processing policy group share processing policy and are associated with at least unitary feature respectively, and be associated with the default degree of correlation, the described default degree of correlation is calculated according to the relatedness computation rule preset by the property value of value privately owned for described first feature and described attribute; Parsing module, for obtain and the request type information of resolving the external equipment of resource request to extract at least one first feature; Strategy Group selects module, for searching according to extracted first feature and determining that the many scenes of resource of the association that the default degree of correlation meets the demands share processing policy group; Preference policy selects module, for according to the searched default degree of correlation, from determine that the many scenes of resource associated share processing policy group and select the many scenes of preferred resources to share processing policy; Resource processing module, processes for sharing the processing policy pair resource corresponding to described request type information according to the many scenes of described preferred resources, to respond this external equipment.
Optionally, the many scenes of described resource share processing policy and comprise: resource request processing policy, resource transmission processing policy and resource data processing policy; Wherein, resource request processing policy is formulated according to the demand of the application scenarios of resource; Resource transmission processing policy is formulated according to the demand of the transmission network situation of resource; Resource data processing policy is formulated according to the demand of the use scenes of resource and transmission network situation.
Optionally, described relatedness computation rule comprises: calculate in the history resource request message sample set of pre-collecting and belong to the mean value of first characteristic value of same default kind and the many scenes of each resource and share the mean value belonging to the property value of same default category attribute in processing policy; Utilize the degree of correlation between mean value calculation unit's feature of described first characteristic value and property value and attribute.
Optionally, describedly search according to extracted first feature and determine that the many scenes of resource of the association that the default degree of correlation meets the demands share processing policy group, comprise following in any one: 1) if current first feature of comprising of request type information and the many scenes of one or more resource share the degree of correlation that the many scenes of resource in processing policy group share processing policy attribute all reach more than predetermined threshold value, then many for resource maximum for degree of correlation scenes are shared processing policy group and share processing policy group as the many scenes of resource of described association; 2) if existing other yuan of feature association shares processing policy group in the many scenes of Current resource in request type information, then when associating Current resource many scenes and sharing processing policy group, calculate the partial correlation that current first feature that this request type information comprises and the many scenes of Current resource share processing policy group; If described partial correlation reaches more than predetermined threshold value, and the degree of correlation between the attribute that current first feature and the many scenes of the Current resource many scenes of resource shared in processing policy group share processing policy also reaches more than predetermined threshold value, then determine that described current first feature association shares processing policy group in the many scenes of Current resource; 3) if current first feature that request type information comprises is not associated with the many scenes of any resource share processing policy group, then the many scenes of newly-built resource share processing policy group, and need the many scenes of resource of association to share processing policy current first feature to add wherein, to share processing policy group as the many scenes of resource with current first feature association.
Optionally, described according to the searched default degree of correlation, from determine that the many scenes of resource associated share processing policy group and select the many scenes of preferred resources to share processing policy, comprise: determine that if described to share processing policy group be one for the many scenes of resource that associate, then share the many scenes of the resource selecting the degree of correlation maximum in processing policy group in the many scenes of the resource of described association and share processing policy and share processing policy as the many scenes of described preferred resources; Or, determine that if described the many scenes of resource associated share processing policy group and have multiple, then select to share in processing policy group in the many scenes of the resource of each association respectively to select the many scenes of the maximum resource of each correlation to share processing policy to share processing policy as the many scenes of described preferred resources.
For realizing above-mentioned target and other related objectives, the invention provides a kind of electronic equipment, comprising: memory, share processing policy for storing the many scenes of the multiple resources pre-established, the many scenes of each described resource share processing policy and comprise at least one attribute; The many scenes of each resource share processing policy and share processing policy group by the many scenes of the function difference classification multiple resource of formation, wherein, the many scenes of each resource share attribute that the many scenes of resource in processing policy group share processing policy and are associated with at least unitary feature respectively, and be associated with the default degree of correlation, the described default degree of correlation is calculated according to the relatedness computation rule preset by the property value of value privately owned for described first feature and described attribute; Communication component, is disposed for and the external device communication having resource request, to obtain request type information; Processor, connect described memory and radio communication circuit, and be disposed for extracting at least one first feature from described request type information, search according to extracted first feature and determine that the many scenes of resource of the association that the default degree of correlation meets the demands share processing policy group; Further, according to the searched default degree of correlation, from determine that the many scenes of resource associated share processing policy group and select the many scenes of preferred resources to share processing policy; Share the processing policy pair resource corresponding to described request type information according to the many scenes of described preferred resources to process, to respond this external equipment by described communication component.
As mentioned above, data resource processing method provided by the invention, system and the electronic equipment applied and terminal, share processing policy by formulating the many scenes of multiple resources, the many scenes of each described resource share processing policy and comprise at least one attribute; The many scenes of each resource share processing policy and share processing policy group by the many scenes of the function difference classification multiple resource of formation, wherein, the many scenes of each resource share attribute that the many scenes of resource in processing policy group share processing policy and are associated with at least unitary feature respectively, and be associated with the default degree of correlation, the described default degree of correlation is calculated according to the relatedness computation rule preset by the property value of value privately owned for described first feature and described attribute; Obtain and the request type information of resolving the external equipment of resource request to extract at least one first feature; Search according to extracted first feature and determine that the many scenes of resource of the association that the default degree of correlation meets the demands share processing policy group; According to the searched default degree of correlation, from determine that the many scenes of resource associated share processing policy group and select the many scenes of preferred resources to share processing policy; Share the processing policy pair resource corresponding to described request type information according to the many scenes of described preferred resources to process, to respond this external equipment, the resource realizing transmission can use in different application scene, and improves efficiency of transmission.
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this specification can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this specification also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.
As shown in Figure 1, the invention provides a kind of data resource processing method, it can be applicable to client to service end request resource, and service end correspondence is carried out in the scene processed, and passes through software simulating; Described method comprises:
Step S1: formulate the many scenes of multiple resources and share processing policy, the many scenes of each described resource share processing policy and comprise at least one attribute; The many scenes of each resource share processing policy and share processing policy group by the many scenes of the function difference classification multiple resource of formation, wherein, the many scenes of each resource share attribute that the many scenes of resource in processing policy group share processing policy and are associated with at least unitary feature respectively, and be associated with the default degree of correlation, the described default degree of correlation is calculated according to the relatedness computation rule preset by the property value of value privately owned for described first feature and described attribute.
In one embodiment, described first feature comes from the external equipment (such as to the client of service end request resource) having resource request, be associated with resource request, described unit is characterized as the operation needed in resource transmission process, described first feature can be interpreted as the processing requirements method needed in resource transmission process, preferably, first character representation operation first character representation processing requirements, other operation can not be decomposed into and can not be decomposed into other least unit required, in a request type information, often can extract multiple first feature; As shown in Figure 2, be provided as multiple first Example characteristics, wherein, often organizing numeric string representation element characteristic value, is first feature name, i.e. action name below numeric string, as Transmission Control Protocol; When specifically determining the first feature comprised in request type information, multiple method can be had, as built first feature templates in advance, after participle is carried out to resource request information, carry out template matches, obtaining request type information, and then obtain comprised first feature; Or by carrying out semantic understanding to request type information, to semantic understanding result carry out abstract after obtain first feature; Or directly provide first characteristic value etc. in resource request message, defining method this case of concrete first feature is not construed as limiting.
In one embodiment, described request type information defines according to the such as resource application hardware environment, resource DASE, resource transmission bandwidth, resource transport protocol etc. that have the external equipment of resource request to be correlated with, described resource application hardware environment is as Android device, apple equipment etc., described resource DASE as IOS, Android system etc., described resource transport protocol such as TCP etc.
Such as request type information is: " telecommunications 4G network, user habit obtains audio frequency fast and plays, and Iphone machine is demonstrated "; After template matches is carried out to described request type information, obtain first feature as follows:
Unit's feature 1: operator, telecommunications
Unit's feature 2: network type, 4G network
Unit's feature 3: user habit, streaming is play
Unit's feature 4: type, Iphone
In one embodiment, it is for the processing method that application demand specifically uses in resource transmission process that the many scenes of described resource share processing policy, for example, as shown in the table, SPEEX decoding method is the method used to carry out encoding and decoding to audio resource, it is that a many scene of resource shares processing policy, and the many scenes of each resource share processing policy and comprise one or more attribute, and each attribute has property value; In following table, the many scenes of this resource share the property value that processing policy comprises two attributes and each attribute.
Title |
Attribute 1: property value |
Attribute 2: property value |
SPEEX |
Frequency range: 4 ~ 44.2 |
Tonequality: 0 |
The many scenes of described resource share processing policy and can divide by function difference, such as, comprise: resource request processing policy, resource transmission processing policy and resource data processing policy; Wherein, resource request processing policy is formulated according to the demand of the application scenarios of resource, described application scenarios such as resource application hardware environment and resources DASE application scenarios can also be the size of traffic requirement (such as limiting 10M flow), product demand (requirement of such as product to tonequality is higher), use scenes (such as demonstrating scene, debugging scenarios etc.), user habit and requested resource; Resource transmission processing policy is formulated according to the demand of the transmission network situation of resource, and described transmission network situation is as the network bandwidth and network delay, and Internet Transmission situation can also be: operator types, network type, network jitter etc.; Resource data processing policy is formulated according to the demand of the use scenes of resource and transmission network situation, described resource data processing policy refers to the demand for request resource, resource is processed, as resource encoding and decoding, resource piecemeal, resource noise reduction process, resource link process, host-host protocol process etc., described resource is as audio frequency.
And the many scenes of described resource share processing policy group and refer to multiple functionally similar many scenes to share processing policy and be placed on one group of group formed, i.e. such as resource request processing policy group, resource transmission processing policy group and resource data processing policy group, each many scenes share in processing policy group and comprise the many scenes of multiple resource and share processing policy.
In addition, the many scenes of described resource share processing policy group and first feature, preset the incidence relation of the degree of correlation, can be showed by the form setting up first mark sheet, suppose there are 2 strategies in 1 group, every bar strategy has 2 attributes, and first feature has 2, then such as:
Preferably, existing resource request information sample set can be collected by a large amount of in advance, and the tactful sample set sample of alignment processing is added up and makes.
And described relatedness computation rule comprises: calculate in the history resource request message sample set of pre-collecting and belong to the mean value of first characteristic value of same default kind and the many scenes of each resource and share the mean value belonging to the property value of same default category attribute in processing policy; Utilize the degree of correlation between mean value calculation unit's feature of described first characteristic value and property value and attribute, a kind of computational methods of the described degree of correlation are the covariance first between Computing Meta characteristic value and property value, and then the standard deviation between Computing Meta characteristic value and property value, the ratio of described covariance and standard deviation is shared the many scenes of resource in processing policy group as first feature and the many scenes of Current resource and shares the degree of correlation of processing policy attribute, as follows:
Wherein, r represents that in a kind, each first characteristic value X and the many scenes of resource share the degree of correlation of each property value Y of a kind of processing policy,
for the mean value of X values all in this kind,
for the mean value of Y values all in this kind.
Certainly, also can adopt other method calculate the degree of correlation, as directly use the covariance of first characteristic value and property value represent as described in the degree of correlation.
Comprehensively above-mentioned, can according to the application scenarios of different transmission network and different hardware configurations or software systems, get off needing the corresponding policy development carrying out resource process, and definition is used for representing that first feature of resource request demand is associated in advance, like this follow-up according to the first feature in resource request, go the many scenes of preferred resource needed for mating to share processing policy, realize the good result of the preferred resource process of corresponding scene, hereinafter will be described in detail.
Step S2: obtain and the request type information of resolving the external equipment of resource request to extract at least one first feature.
Lift an example, the structure of described resource request message: can be for the practical application request customization according to user obtains, particularly, resource request message comprises the relevant hardware environment of client, the information such as application scenarios, resource identification of resource, as shown in Figure 3, be the example of a resource request information; Described in brought forward, if the request type information that service end needs is not in resource request information, service end also can send detection packet to client, the request type information that service end needs is provided in detection packet, the request type information of the client of needs, according to service end detection packet, is sent to service end by client.
Step S3: search according to extracted first feature and determine that the many scenes of resource of the association that the default degree of correlation meets the demands share processing policy group.
In one embodiment, concrete, the first feature that can request type information selected successively to comprise, travels through the many scenes of all resources and shares processing policy group, determines that the many scenes of resource corresponding to request type information shares processing policy group; When specifically determining, according to first mark sheet of request type information, first feature of comprising of inquiry request type information and many scenes share many scenes in processing policy group and share the degree of correlation of processing policy attribute successively, according to the threshold value preset, if the described degree of correlation reaches more than predetermined threshold value, (in such as upper table, A is 80, predetermined threshold value is 60, then reach requirement), then determine that the current many scenes of first feature association share processing policy group.
Describedly search according to extracted first feature and determine that the many scenes of resource of the association that the default degree of correlation meets the demands share processing policy group, comprise following in any one:
1) if current first feature (so-called current first feature of comprising of request type information, first feature of namely such as arbitrarily specifying in each first feature of resolving acquisition from request type information) share with the many scenes of one or more resource the degree of correlation that the many scenes of resource in processing policy group share processing policy group attribute and all reach more than predetermined threshold value, then many for resource maximum for degree of correlation scenes are shared processing policy group and share processing policy group as the many scenes of resource of described association;
2) if existing other yuan of feature association shares processing policy group in the many scenes of Current resource in request type information, then when searching the many scenes of Current resource and sharing processing policy group, calculate the partial correlation that current first feature that this request type information comprises and the many scenes of Current resource share processing policy group, if described partial correlation reaches more than predetermined threshold value, and the degree of correlation between the attribute that current first feature and the many scenes of the Current resource many scenes of resource shared in processing policy group share processing policy also reaches more than predetermined threshold value, then determine that described current first feature association shares processing policy group in the many scenes of Current resource, that is, the many scenes of described Current resource share processing policy group and share processing policy group as the many scenes of resource of the described association of described current first feature, the computational methods of described partial correlation are first calculate current first feature and the many scenes of Current resource to share the degree of correlation that the many scenes of resource in processing policy group share processing policy attribute and be associated with the many scenes of Current resource and share all first feature of processing policy group and the many scenes of Current resource and share the many scenes of resource in processing policy group and share the difference of the product of processing policy attributes correlation, as the first calculated value, then compute associations shares all first feature of processing policy group and the many scenes of Current resource in the many scenes of Current resource and shares the many scenes of resource in processing policy group and share the product of the irrelevant degree of processing policy attribute, as the second calculated value, finally, the ratio of described first calculated value and the second calculated value is shared the partial correlation of processing policy group as current first feature and the many scenes of Current resource, share processing policy group to comprise two first feature associations in current request type in the many scenes of same resource, the computational methods of described partial correlation are as follows:
Wherein,
represent Known Elements characteristic value x
1with attribute g
pwhen the degree of correlation, current first characteristic value x
2with attribute g
qbetween partial correlation; g
pand g
qfor the many scenes of resource share p and q attribute that the many scenes of resource in processing policy group share processing policy,
for first characteristic value x that request type information comprises
1share the many scenes of resource in processing policy group with the many scenes of resource and share processing policy attribute g
pbetween the degree of correlation,
for first characteristic value x
2share the many scenes of resource in processing policy group with the many scenes of resource and share processing policy attribute g
qbetween the degree of correlation;
Certainly, other method also can be adopted to calculate described partial correlation, and the present invention not these are only illustration, not as limit.
3) if current first feature that request type information comprises is not associated with the many scenes of any resource share processing policy group, then the many scenes of newly-built resource share processing policy group, and need the many scenes of resource of association to share processing policy current first feature to add wherein, to share processing policy group as the many scenes of resource with current first feature association.
Step S4: according to the searched default degree of correlation, from determine that the many scenes of resource associated share processing policy group and select the many scenes of preferred resources to share processing policy.
In one embodiment, the many scenes of preferred resources share tactful selection at least two kinds of situations:
1) if to share processing policy group be one to the described many scenes of resource determining to associate, then share the many scenes of the resource selecting the degree of correlation maximum in processing policy group in the many scenes of the resource of described association to share processing policy and share processing policy as the many scenes of described preferred resources, the maximum many scenes of resource of the described degree of correlation share first feature that processing policy is current request type and the many scenes of resource, and to share the degree of correlation of attribute in processing policy maximum;
2) or, determine that if described the many scenes of resource associated share processing policy group and have multiple, then select to share in processing policy group in the many scenes of the resource of each association respectively to select the many scenes of the maximum resource of each correlation to share processing policy to share processing policy as the many scenes of described preferred resources.
Such as, request type information contains 4 first features, and correspondence has been associated with 4 groups, then from each group, select the degree of correlation the highest many scene of preferred resources to share processing policy, then have 4 strategies.
Step S5: share the processing policy pair resource corresponding to described request type information according to the many scenes of described preferred resources and process, to respond this external equipment.
For example, the example of brought forward resource request message, address and the resource name of the external equipment of request resource can be obtained according to resource request message, audio frequency for request resource, during concrete transmission, first determining that the many scenes of preferred resources share processing policy and process request audio frequency successively, as selected audio transmission protocol, piecemeal process being carried out to audio frequency; Then the host-host protocol that the audio frequency after process is specified according to client is carried out audio transmission; As shown in the table, processing policy is shared according to the many scenes of preferred resources that audio request type information is determined, first need during concrete audio transmission to transfer audio frequency to wav form, again audio frequency is carried out segment processing, front four sections of transmission 18K, final stage transmission 1K, selects the RTP based on TCP to transmit audio frequency.
As shown in Figure 4, the invention provides a kind of resource processing system 1, its principle is roughly the same with above-mentioned embodiment of the method, and it is no longer repeated for technical characteristic that therefore can be general; Described system 1 comprises: resource associations module 11, and share processing policy for formulating the many scenes of multiple resources, the many scenes of each described resource share processing policy and comprise at least one attribute; The many scenes of each resource share processing policy and share processing policy group by the many scenes of the function difference classification multiple resource of formation, wherein, the many scenes of each resource share attribute that the many scenes of resource in processing policy group share processing policy and are associated with at least unitary feature respectively, and be associated with the default degree of correlation, the described default degree of correlation is calculated according to the relatedness computation rule preset by the property value of value privately owned for described first feature and described attribute; Parsing module 12, for obtain and the request type information of resolving the external equipment of resource request to extract at least one first feature; Strategy Group selects module, for searching according to extracted first feature and determining that the many scenes of resource of the association that the default degree of correlation meets the demands share processing policy group; Preference policy selects module, for according to the searched default degree of correlation, from determine that the many scenes of resource associated share processing policy group and select the many scenes of preferred resources to share processing policy; Resource processing module, processes for sharing the processing policy pair resource corresponding to described request type information according to the many scenes of described preferred resources, to respond this external equipment.
In one embodiment, the many scenes of described resource share processing policy and comprise: resource request processing policy, resource transmission processing policy and resource data processing policy; Wherein, resource request processing policy is formulated according to the demand of the application scenarios of resource, described application scenarios is as resource application hardware environment and resources DASE, application scenarios can also be the size of traffic requirement (such as limiting 10M flow), product demand (requirement of such as product to tonequality is higher), use scenes (such as demonstrating scene, debugging scenarios etc.), user habit and requested resource; Resource transmission processing policy is formulated according to the demand of the transmission network situation of resource, and described transmission network situation is as the network bandwidth and network delay, and Internet Transmission situation can also be: operator types, network type, network jitter etc.; Resource data processing policy is formulated according to the demand of the use scenes of resource and transmission network situation, described resource data processing policy refers to the demand for request resource, resource is processed, as resource encoding and decoding, resource piecemeal, resource noise reduction process, resource link process, host-host protocol process etc., described resource is as audio frequency.
In one embodiment, described relatedness computation rule comprises: calculate in the history resource request message sample set of pre-collecting and belong to the mean value of first characteristic value of same default kind and the many scenes of each resource and share the mean value belonging to the property value of same default category attribute in processing policy; Utilize the degree of correlation between mean value calculation unit's feature of described first characteristic value and property value and attribute, a kind of computational methods of the described degree of correlation are the covariance first between Computing Meta characteristic value and property value, and then the standard deviation between Computing Meta characteristic value and property value, the ratio of described covariance and standard deviation is shared the many scenes of resource in processing policy group as first feature and the many scenes of current Current resource and shares the degree of correlation of processing policy attribute, as follows:
Wherein, r represents that in a kind, each first characteristic value X and the many scenes of resource share the degree of correlation of each property value Y of a kind of processing policy,
for the mean value of X values all in this kind,
for the mean value of Y values all in this kind.Certainly, other method also can be adopted to calculate the degree of correlation, represent as the degree of correlation between first feature and attribute as directly used the covariance of first characteristic value and property value.
In one embodiment, describedly search according to extracted first feature and determine that the many scenes of resource of the association that the default degree of correlation meets the demands share processing policy group, comprise following in any one:
1) if current first feature of comprising of request type information and the many scenes of one or more resource share the degree of correlation that the many scenes of resource in processing policy group share processing policy attribute all reach more than predetermined threshold value, then many for resource maximum for degree of correlation scenes are shared processing policy group and share processing policy group as the many scenes of resource of described association;
2) if existing other yuan of feature association shares processing policy group in the many scenes of Current resource in request type information, then when searching the many scenes of Current resource and sharing processing policy group, calculate the partial correlation that current first feature that this request type information comprises and the many scenes of Current resource share processing policy group, if described partial correlation reaches more than predetermined threshold value, and the degree of correlation between the attribute that other yuan of feature and the many scenes of the Current resource many scenes of resource shared in processing policy group share processing policy also reaches more than predetermined threshold value, then determine that described current first feature association shares processing policy group in the many scenes of Current resource, the computational methods of described partial correlation are first calculate current first feature and the many scenes of Current resource to share the degree of correlation that the many scenes of resource in processing policy group share processing policy attribute and be associated with the many scenes of Current resource and share all first feature of processing policy group and the many scenes of Current resource and share the many scenes of resource in processing policy group and share the difference of the product of processing policy attributes correlation, as the first calculated value, then compute associations shares all first feature of processing policy group and the many scenes of Current resource in the many scenes of Current resource and shares the many scenes of resource in processing policy group and share the product of the irrelevant degree of processing policy attribute, as the second calculated value, finally, the ratio of described first calculated value and the second calculated value is shared the partial correlation of processing policy group as current first feature and the many scenes of Current resource, share processing policy group to comprise two first feature associations in current request type in the many scenes of same resource, the computational methods method of described partial correlation is as follows:
Wherein,
represent Known Elements characteristic value x
1with attribute g
pthe degree of correlation when, current first characteristic value x
2with attribute g
qbetween partial correlation; g
pand g
qfor the many scenes of resource share p and q attribute that the many scenes of resource in processing policy group share processing policy,
for first characteristic value x that request type information comprises
1share the many scenes of resource in processing policy group with the many scenes of resource and share processing policy attribute g
pbetween the degree of correlation,
for first characteristic value x
2share the many scenes of resource in processing policy group with the many scenes of resource and share processing policy attribute g
qbetween the degree of correlation;
Certainly, other method also can be adopted to calculate described partial correlation, and this case is not construed as limiting.
3) if current first feature that request type information comprises is not associated with the many scenes of any resource share processing policy group, then the many scenes of newly-built resource share processing policy group, and need the many scenes of resource of association to share processing policy current first feature to add wherein, to share processing policy group as the many scenes of resource with current first feature association.
In one embodiment, described according to the searched default degree of correlation, from determine that the many scenes of resource associated share processing policy group and select the many scenes of preferred resources to share processing policy, comprise: determining that if described the many scenes of resource associated share processing policy group is one, then share the many scenes of the resource selecting the degree of correlation maximum in processing policy group in the many scenes of the resource of described association to share processing policy and share processing policy as the many scenes of described preferred resources, the maximum many scenes of resource of the described degree of correlation share first feature that processing policy is current request type and the many scenes of resource, and to share the degree of correlation of attribute in processing policy maximum, or, determine that if described the many scenes of resource associated share processing policy group and have multiple, then select to share in processing policy group in the many scenes of the resource of each association respectively to select the many scenes of the maximum resource of each correlation to share processing policy to share processing policy as the many scenes of described preferred resources.
As shown in Figure 5, the invention provides the hardware device basis of application of aforementioned method or system embodiment:
The invention provides a kind of electronic equipment (server device, be such as panel computer, PC, notebook computer etc.), comprise: memory 21 (such as ROM, RAM etc.), share processing policy for storing the many scenes of the multiple resources pre-established, the many scenes of each described resource share processing policy and comprise at least one attribute; The many scenes of each resource share processing policy and share processing policy group by the many scenes of the function difference classification multiple resource of formation, wherein, the many scenes of each resource share attribute that the many scenes of resource in processing policy group share processing policy and are associated with at least unitary feature respectively, and be associated with the default degree of correlation, the described default degree of correlation is calculated according to the relatedness computation rule preset by the property value of value privately owned for described first feature and described attribute; Communication component 22 (such as: wireless communication unit: WiFi, bluetooth, mobile communication module etc., wireline communication section: wired network adapter etc.), is disposed for and the external device communication having resource request, to obtain request type information; Processor 23 (MCU, CPU, PLD etc.), connect described memory and radio communication circuit, and be disposed for extracting at least one first feature from described request type information, search according to extracted first feature and determine that the many scenes of resource of the association that the default degree of correlation meets the demands share processing policy group; Further, according to the searched default degree of correlation, from determine that the many scenes of resource associated share processing policy group and select the many scenes of preferred resources to share processing policy; Share the processing policy pair resource corresponding to described request type information according to the many scenes of described preferred resources to process, to respond this external equipment by described communication component 22.
The present invention also can provide the electric terminal 3 connecting described electronic equipment 2 (by client device that is wireless or wired connection, be such as mobile phone, panel computer, PC, notebook computer etc.) as described external equipment, comprise: communication component 31 (wireless communication unit: WiFi, bluetooth, mobile communication module etc., wireline communication section: wired network adapter etc., suitable with server device), for sending request type information, affiliated request type information is configured to therefrom to resolve and extract first feature.
In conjunction with the running software principle in previous embodiment on the hardware foundation of Fig. 5, above-mentioned functions can be realized.
As mentioned above, data resource processing method provided by the invention, system and the electronic equipment applied, share processing policy by formulating the many scenes of multiple resources, the many scenes of each described resource share processing policy and comprise at least one attribute; The many scenes of each resource share processing policy and share processing policy group by the many scenes of the function difference classification multiple resource of formation, wherein, the many scenes of each resource share attribute that the many scenes of resource in processing policy group share processing policy and are associated with at least unitary feature respectively, and be associated with the default degree of correlation, the described default degree of correlation is calculated according to the relatedness computation rule preset by the property value of value privately owned for described first feature and described attribute; Obtain and the request type information of resolving the external equipment of resource request to extract at least one first feature; Search according to extracted first feature and determine that the many scenes of resource of the association that the default degree of correlation meets the demands share processing policy group; According to the searched default degree of correlation, from determine that the many scenes of resource associated share processing policy group and select the many scenes of preferred resources to share processing policy; Share the processing policy pair resource corresponding to described request type information according to the many scenes of described preferred resources to process, to respond this external equipment, the resource realizing transmission can use in different application scene, and improves efficiency of transmission.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.