pub struct Kcore {
k: u32,
user_k: Option<u32>,
item_k: Option<u32>,
year: Option<i32>,
start: Option<NaiveDate>,
end: Option<NaiveDate>,
output: PathBuf,
input: PathBuf,
}
Expand description
Compute k-cores of interaction records.
Fields§
§k: u32
The size of the k-core.
user_k: Option<u32>
The user rating count for a (ku,ki)-core
item_k: Option<u32>
The item rating count for a (ku,ki)-core
year: Option<i32>
Limit to ratings in a particular year.
start: Option<NaiveDate>
Limit ratings to after a particular date (inclusive)
end: Option<NaiveDate>
Limit ratings to before a particular date (exclusive)
output: PathBuf
The output file.
input: PathBuf
The input file
Trait Implementations§
source§impl Args for Kcore
impl Args for Kcore
source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id
][crate::ArgGroup::id] for this set of argumentssource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
source§impl From<Kcore> for RootCommand
impl From<Kcore> for RootCommand
source§fn from(v: Kcore) -> RootCommand
fn from(v: Kcore) -> RootCommand
Converts to this type from the input type.
source§impl FromArgMatches for Kcore
impl FromArgMatches for Kcore
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Auto Trait Implementations§
impl RefUnwindSafe for Kcore
impl Send for Kcore
impl Sync for Kcore
impl Unpin for Kcore
impl UnwindSafe for Kcore
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more