1. A control method applied to an electronic device, the method comprising:
detecting pressure imposed on a first surface of the electronic device;
when a second pressure is detected on the first surface while a first pressure is detected on the first surface, obtaining first pressure parameters of the first pressure and second pressure parameters of the second pressure;
generating a control instruction based on the first and second pressure parameters according to settings of current application; and
executing e control instruction.
2. The method of claim 1, wherein the second pressure detected on the first surface and the first pressure detected on the first surface are directed to deform the electronic device.
3. The method of claim 1, wherein
the first pressure parameters include a first press location of the first pressure and a first strength parameter of the first pressure; and
the second pressure parameters include a second press location of the second pressure and a second strength parameter of the second pressure.
4. The method of claim 3, further comprising
after obtaining the first pressure parameters of the first pressure and the second pressure parameters of the second pressure, determining a value of the strength parameter difference between the first strength parameter and the second strength parameter;
wherein the generating step of the control instruction comprises generating the control instruction according to the value of the strength parameter difference and according to at least one of the first press location and the second press location.
5. The method of claim 4, wherein the generating the control instruction according to the value of the strength parameter difference and according to at least one of the first press location and the second press location comprises:
when the value of the strength parameter difference is greater than a first threshold, generating the control instruction according to the value of the strength parameter difference and according to at least one of the first press location and the second press location.
6. The method of claim 3, wherein the generating the control instruction according to the first pressure parameters and the second pressure parameters comprises:
generating the control instruction according to the first press location and the second press location.
7. The method of claim 6, wherein the first surface comprises at least three predetermined areas, the control method further comprising
after obtaining the first pressure parameters of the first pressure and the second pressure parameters of the second pressure, determining a first predetermined area where the first press location belongs to and a second predetermined area where the second press location belongs to from among the at least three predetermined areas;
wherein the generating step of the control instruction according to the first press location and the second press location comprises:
generating the control instruction according to the first predetermined area and the second predetermined area when the first predetermined area and the second predetermined area are different.
8. The method of claim 3, further comprising
after obtaining the first pressure parameters of the first pressure and the second pressure parameters of the second pressure, determining whether the first strength parameter and the second strength parameter are greater than a second threshold;
the generating a control instruction based on the first and second pressure parameters according to the settings of current application comprises:
when the first strength parameter and the second strength parameter are greater than the second threshold, generating the control instruction based on the first pressure parameters and the second pressure parameters according to the setting of current application.
9. The method of claim 6, further comprising
after obtaining the first pressure parameters of the first pressure and the second pressure parameters of the second pressure, determining whether the first strength parameter and the second strength parameter are greater than a second threshold;
wherein the generating step of the control instruction based on the first and second pressure parameters according to the settings of current application comprises:
when the first strength parameter and the second strength parameter are greater than the second threshold, generating the control instruction based on the first pressure parameters and the second pressure parameters according to the setting of current application.
10. An electronic device, comprising
a pressure detection unit, configured to detect pressure imposed on the first surface of the electronic device;
a parameter acquisition unit, configured to obtain first pressure parameters of a first pressure and second pressure parameters of a second pressure when the second pressure is detected in the first surface while the first pressure is detected in the first surface;
an instruction generation unit, configured to generate a control instruction based on the first and second pressure parameters according to settings of current application; and
an instruction execution unit, configured to execute the control instruction.
11. The electronic device of claim 10, wherein
the second pressure detected in the first surface and the first pressure detected in the first surface are for deforming the electronic device.
12. The electronic device of claim 10, wherein
the first pressure parameters include a first press location of the first pressure, and a first strength parameter of the first pressure; and
the second pressure parameters include a second press location of the second pressure and a second strength parameter of the second pressure.
13. The electronic device as claimed in claim 12, further comprises:
a first comparison unit, configured to determine a value of the strength parameter difference between the first strength parameter and the second strength parameter,
the instruction generation unit generates the control instruction according to the value of the strength parameter difference and according to at least one of the first press location and the second press location.
14. The electronic device as claimed in claim 13, wherein
when the first comparison unit determines that the value of the strength parameter difference is greater than a first threshold, the instruction generation unit generates the control instruction according to the value of the strength parameter difference and according to at least one of the first press location and the second press location.
15. The electronic device of claim 12, wherein
the instruction generation unit generates the control instruction according to the first press location and the second press location.
16. The electronic device of claim 15, wherein the first surface comprises at least three predetermined areas, the electronic device further comprising
a area determination unit, configured to determine a first predetermined area where the first press location belongs to and a second predetermined area where the second press location belongs to from among the at least three predetermined areas;
the instruction generation unit generates the control instruction according to the first predetermined area and the second predetermined area when the area determination unit determines that the first predetermined area and the second predetermined area are different.
17. The electronic device of claim 12, further comprising
a second comparison unit, configured to determine whether the first strength parameter and the second strength parameter are greater than a second threshold;
when the first strength parameter and the second strength parameter are greater than the second threshold, the instruction generation unit generates the control instruction based on the first and second pressure parameters according to the settings of current application.
The claims below are in addition to those above.
All refrences to claim(s) which appear below refer to the numbering after this setence.
1. A data-analysis system, implemented as one or more processors that execute one or more computer programs, comprising:
a metadata-extraction component implemented at the one or more processors that extracts indications of data entities and relationships between data entities from data stored on one or more electronic-memory and mass-storage devices;
a relationship-inference component, to define a keyword index including reference lists based on values of entries in a plurality of data-type compatible columns, implemented at the one or more processors that analyzes the data within two or more contexts to infer additional relationships between data entities based on mutual occurrence of a plurality of columns identified in one or more reference lists of the keyword index, wherein each context of the two or more contexts is a particular database view of the data; and
a context-determination component implemented at the one or more processors that determines the two or more contexts within which the data is analyzed.
2. The data-analysis system of claim 1 wherein the data is relational data managed by a relational database system, the data entities are relational-database tables, and the relationships are constraints specified for columns of the relational-database tables, including foreign-key constraints.
3. The data-analysis system of claim 1 wherein the relationship-inference component analyzes the data to infer additional relationships between data entities by:
constructing all possible pairs of data-type-compatible components of the data entities;
filtering the possible pairs of data-type-compatible components of the data entities to produce candidate relationships; and
evaluating the candidate relationships, using statistics andor metrics computed for the data entities, to produce the additional relationships.
4. The data-analysis system of claim 1 wherein the relationship-inference component evaluates a candidate relationship to determine whether or not the candidate relationship constitutes an additional relationship by comparing at least one of:
a fraction of the entries in a first column of the plurality of data-type-compatible columns with values that occur in entries of a second column of the plurality of data-type-compatible columns; and
a fraction of entries in the second column with values that occur in entries of the first column.
5. The data-analysis system of claim 1 wherein the context-determination component determines the two or more contexts within which the data is analyzed by one or more of:
extracting identities of data entities referenced in queries directed to a database management system that manages the data by one or more application programs;
extracting identities of data entities in stored queries within the data; and
extracting identities of data entities in queries embedded in application programs.
6. The data-analysis system of claim 1, wherein the context-determination component extracts context-defining information from queries and determines the context based on the context-defining information.
7. The data-analysis system of claim 1, wherein:
each value of a plurality of values in the keyword index associated with a reference list identifying two or more of the plurality of data-type compatible columns; and
the relationship-inference component infers an additional relationship between a first data entity and a second data entity from the data entities in response to determining that each of one or more reference lists identifies a data-type compatible column of the first data entity and a data-type compatible column of the second data entity.
8. A data-analysis system, implemented as one or more processors that execute one or more computer programs, comprising:
a metadata-extraction component implemented at the one or more processors that extracts indications of data entities and relationships between data entities from data stored on one or more electronic-memory and mass-storage devices;
a relationship-inference component, to define a keyword index including reference lists based on values of entries in a plurality of data-type compatible columns, implemented at the one or more processors that analyzes the data within two or more contexts to infer additional relationships between data entities based on mutual occurrence of a plurality of columns identified in one or more reference lists of the keyword index, wherein each context of the two or more contexts is a particular database view of the data; and
a context-determination component implemented at the one or more processors that determines the two or more contexts within which the data is analyzed; and
a navigational analysis tool that provides an interface that allows for navigation between relationship-interconnected data entities within each of one or more contexts, for viewing representations of data entities and relationships, and for editing and updating the relationships.
9. The data-analysis system of claim 8 wherein the navigational analysis tool, displayed on a computer device, provides an interface comprising:
a displayed representation of already determined data entities and relationships associated with a displayed context;
a displayed representation of a currently selected data entity;
a displayed representation of the already determined relationships between the currently selected data entity and the already determined data entities associated with a displayed context; and
navigational and editing features.
10. The data-analysis system of claim 9 wherein the navigational and editing features include one or more of:
an interface feature that allows an analyst to navigate from the currently selected data entity to another data entity related by an already determined relationship with the data entity;
an interface feature that allows an analyst to add relationships between data entities;
an interface feature that allows an analyst to delete a relationship between data entities;
an interface feature that allows an analyst to add an alias for the currently selected data entity; and
an interface feature that allows an analyst to delete an alias for the currently selected data entity.
11. The data-analysis system of claim 9 wherein the displayed representation of the already determined relationships between the currently selected data entity and the already determined data entities associated with a displayed context include indications, for each displayed relationship, of a type of relationship to which the displayed relationship belongs and indications, for each statistically-inferred displayed relationship, of the strength of the statistical inference.
12. The data-analysis system of claim 8, wherein the context-determination component extracts context-defining information from queries and determines the context based on the context-defining information.
13. The data-analysis system of claim 8, wherein:
each value of a plurality of values in the keyword index associated with a reference list identifying two or more of the plurality of data-type compatible columns; and
the relationship-inference component infers an additional relationship between a first data entity and a second data entity from the data entities in response to determining that each of one or more reference lists identifies a data-type compatible column of the first data entity and a data-type compatible column of the second data entity.
14. A method for computational analysis of data stored within a database management system, the method comprising:
extracting, by an electronic data-analysis system that defines a keyword index including reference lists based on values of entries in a plurality of data-type compatible columns, indications of data entities and relationships between data entities from data stored on one or more electronic-memory and mass-storage devices;
analyzing, by the electronic data-analysis system, the data within two or more contexts to infer additional relationships between data entities based on mutual occurrence of a plurality of columns identified in one or more reference lists of the keyword index, wherein each context of the two or more contexts is a particular database view of the data;
determining, by the electronic data-analysis system, the two or more contexts within which to analyze the data; and
displaying on a computer device, by the electronic data-analysis system, a navigational analysis tool that provides an interface that allows for navigation between relationship-interconnected data entities within each of one or more contexts, for viewing representations of data entities and relationships, and for editing and updating the relationships.
15. The method of claim 14 wherein analyzing the data to infer additional relationships between data entities further includes:
constructing all possible pairs of data-type-compatible components of the data entities;
filtering the possible pairs of data-type-compatible components of the data entities to produce candidate relationships; and
evaluating the candidate relationships, using statistics andor metrics computed for the data entities, to produce the additional relationships.
16. The method of claim 15 wherein evaluating the candidate relationships to produce the additional relationships further includes comparing at least one of:
a fraction of the entries in a first column of data-type-compatible columns with values that occur in entries of a second column of the data-type-compatible columns; and
a fraction of entries in the second column with values that occur in entries of the first column.
17. The method of claim 14 wherein determining the two or more contexts within which to analyze the data further includes one or more of:
extracting identities of data entities referenced in queries directed to a database management system that manages the data by one or more application programs;
extracting identities of data entities in stored queries within the data; and
extracting identities of data entities in queries embedded in application programs.
18. The method of claim 14 wherein the navigational analysis tool, displayed on a computer device, provides an interface comprising:
a displayed representation of already determined data entities and relationships associated with a displayed context;
a displayed representation of a currently selected data entity;
a displayed representation of the already determined relationships between the currently selected data entity and the already determined data entities associated with a displayed context; and
navigational and editing features.
19. The method of claim 14, wherein:
the electronic data-analysis system extracts context-defining information from queries and determines the context based on the context-defining information;
each value of a plurality of values in the keyword index associated with a reference list identifying two or more of the plurality of data-type compatible columns; and
the electronic data-analysis system infers an additional relationship between a first data entity and a second data entity from the data entities in response to determining that each of one or more reference lists identifies a data-type compatible column of the first data entity and a data-type compatible column of the second data entity.