Unlock instant, AI-driven research and patent intelligence for your innovation.

Method, device, readable medium and storage controller for randomly extracting sample data

A technology for storing controllers and sample data, which is applied in the computer field, can solve the problems of too large a quantity and the inability to randomly extract sample data, and achieve the effect of accurate random extraction

Active Publication Date: 2021-04-20
INSPUR COMMON SOFTWARE
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the above technical solution, it may be impossible to accurately randomly extract a corresponding amount of sample data from the sample data set due to the large or small amount of sample data in the sample data set

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method, device, readable medium and storage controller for randomly extracting sample data
  • Method, device, readable medium and storage controller for randomly extracting sample data
  • Method, device, readable medium and storage controller for randomly extracting sample data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work belong to the protection of the present invention. scope.

[0049] Such as figure 1 As shown, the embodiment of the present invention provides a method for randomly extracting sample data, including:

[0050] A0: Arrange each sample data of the sample data set into a sequential queue, and determine the number of samples;

[0051] A1: Generate a random number corresponding to the current sample data at the head...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention provides a method, device, readable medium, and storage controller for randomly extracting sample data. The method includes: A0: arranging each sample data in a sample data set into a sequential queue, and determining the number of samples to be extracted; A1: generating Corresponding to the random number of the current sample data at the head of the team in the sequence queue; A2: detect whether the random number is less than the extraction quantity, if so, then perform A3; otherwise, perform A4; A3: will be at the head of the team The current sample data is taken out as reference sample data, and A5 is executed; A4: the current sample data located at the head of the queue is placed at the tail of the sequential queue, and A1 is executed; A5: Detect each of the retrieved Referring to the current number of sample data, when the current number is less than the extraction number, execute A1. Through the technical solution of the present invention, a corresponding amount of sample data can be randomly extracted from the sample data set more accurately.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method, a device, a readable medium and a storage controller for randomly extracting sample data. Background technique [0002] The application scenarios of random sampling data are very broad. Specifically, when the sample data set is relatively large, a small amount of sample data may be randomly extracted from a large amount of sample data in the sample data set for analysis to realize corresponding services. [0003] At present, when randomly extracting m sample data from n sample data in the sample data set, the n sample data in the sample data set can be arranged into a sequential queue, and then m positive integers smaller than n are generated according to actual needs, and then the The m sample data whose corresponding sequence bit is the same as each positive integer in the sequential queue is extracted, that is, m sample data are randomly extracted from the n sampl...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/2458
Inventor 邵辉曹雪韬王宏达崔冲冲
Owner INSPUR COMMON SOFTWARE